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.

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up