Skip to content

hchiam/learning-compromisejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Learning compromise.js

Just one of the things I'm learning. https://github.com/hchiam/learning

Do modest NLP (Natural Language Processing) in your browser (no neural network model, no cloud 3rd party processing your data).

Consider the pros and cons of this.

Live minimal compromise.js adjectives() demo: https://codepen.io/hchiam/pen/XWwQypE?editors=1000

<p id="output"></p>

<script src="https://unpkg.com/[email protected]/builds/compromise.js"></script>
<script>
  const doc = nlp("The flavour of the food was very tasty, fresh, and sweet.");
  document.body.querySelector("#output").innerText = doc.adjectives().text();
</script>

See official README for intro: https://github.com/spencermountain/compromise/blob/master/README.md

Skip to API sections: https://github.com/spencermountain/compromise?tab=readme-ov-file#api

Skip to gentle intro/docs and more concepts not always overlapping with the API sections: https://github.com/spencermountain/compromise/blob/master/README.md#docs

About

learning about compromise.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published