Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

This branch is 2 commits behind amitamb:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.html
natural.js
qunit-1.10.0.css
qunit-1.10.0.js
removeStopWords.js
stopwords.js
tests.js

README.md

This is client side library extracted from natural language processing library for node

https://github.com/NaturalNode/natural

Installation

You just need to include natural.js in your project and can use following libraries from natural library.

Now you can access following object from natural.

SoundEx Metaphone DoubleMetaphone PorterStemmer PorterStemmerRu LancasterStemmer AggressiveTokenizerRu AggressiveTokenizer RegexpTokenizer WordTokenizer WordPunctTokenizer TreebankWordTokenizer NounInflector PresentVerbInflector CountInflector TfIdf SentenceAnalyzer NGrams JaroWinklerDistance LevenshteinDistance DiceCoefficient

All these objects are inside namespace natural

Example

You can use SoundEx using

if(natural.SoundEx.compare('phonetics', 'fonetix')) console.log('they sound alike!');

More Usage Examples

For more examples visit natural readme

Limitations

It doesn't yet support Classifiers and Wordnet.

Something went wrong with that request. Please try again.