DEV Community

Cover image for I made LexioJS: a NLP library built in VanillaJS
Somnath Pan
Somnath Pan

Posted on

4 3 2 2 2

I made LexioJS: a NLP library built in VanillaJS

Hey there! I am thrilled to share my new project LexioJS,
A simple lightweight library,which allows you to perform NLP tasks,such as:

  • tokenization
  • stop word removal
  • NER
  • stemming
  • lemmatization
  • sentiment analysis

introduction

LexioJS is a very fast,simple & lightweight(~7.60 kb minified) NLP library,which allows you to perform all the basic NLP tasks.

features

  • tokenization
  • stop word removal
  • NER
  • stemming
  • lemmatization
  • sentiment analysis

getting started with LexioJS

Including LexioJS in your project using a CDN:

<script src="https://cdn.jsdelivr.net/gh/SomnathDevPro/LexioJS@main/src/lexio.min.js"></script>
Enter fullscreen mode Exit fullscreen mode

You can refer to LexioJS docs for tutorials:
Documentation
GitHub repository

Use cases

  • Text Preprocessing
  • Sentiment Analysis
  • developing small ChatBots & virtual assistants

Drawbacks & Limitations

Although I've tried to build a comprehensive library,it has some limitations:

  • limited features: I have provided basic functionalities for NLP tasks,but it's important to note,that it lacks some other complex features such as POS tagging,dependency Parsing & ML integration.

-Currently Lexio only supports English language processing.

-sentiment analysis model may struggle with sarcasm & nuanced text.

I plan to address these limitations in future updates.

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more