DEV Community

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

Posted on

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.

Top comments (0)