Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/NaturalNode/natural
/ functions
Functions
759 in github.com/NaturalNode/natural
⨍
Functions
759
◇
Types & classes
359
↓ 273 callers
Method
singularize
(token)
lib/natural/inflectors/singular_plural_inflector.js:61
↓ 212 callers
Method
pluralize
(token)
lib/natural/inflectors/singular_plural_inflector.js:57
↓ 145 callers
Method
process
(token, maxLength)
lib/natural/phonetics/soundex.js:28
↓ 137 callers
Method
addDocument
(document, key, restoreCache)
lib/natural/tfidf/tfidf.js:117
↓ 89 callers
Method
stem
(token)
lib/natural/stemmers/stemmer_nl.js:29
↓ 86 callers
Method
tokenize
(text, preserveApostrophe)
lib/natural/tokenizers/tokenizer_case.js:27
↓ 49 callers
Method
addIrregular
(singular, plural)
lib/natural/inflectors/singular_plural_inflector.js:94
↓ 47 callers
Method
nth
(i)
lib/natural/inflectors/count_inflector.js:43
↓ 44 callers
Function
endsinArr
* Return longest matching suffixes for a token or '' if no suffix match * @param {String} token Word to find matching suffix * @param {Array} s
lib/natural/stemmers/porter_stemmer_fr.js:348
↓ 40 callers
Function
runDisambiguator
(disambiguateRules, word)
lib/natural/stemmers/indonesian/prefix_rules.js:48
↓ 35 callers
Method
add
(element)
lib/natural/util/bag.js:31
↓ 34 callers
Method
classify
(observation)
lib/natural/classifiers/classifier.js:138
↓ 30 callers
Method
trim
(array)
lib/natural/tokenizers/tokenizer.js:26
↓ 25 callers
Method
step2
(word)
lib/natural/stemmers/porter_stemmer_nl.js:231
↓ 25 callers
Method
train
()
lib/natural/classifiers/classifier.js:116
↓ 23 callers
Method
tfidf
(terms, d)
lib/natural/tfidf/tfidf.js:176
↓ 22 callers
Function
JaroWinklerDistance
(s1, s2, options = {})
lib/natural/distance/jaro-winkler_distance.js:105
↓ 22 callers
Method
toString
()
lib/natural/classifiers/maxent/Element.js:33
↓ 21 callers
Method
addElement
(x)
lib/natural/classifiers/maxent/Sample.js:61
↓ 21 callers
Method
ngrams
(sequence: string | string[], n: number, startSymbol: string | undefined | null, endSymbol: string | undefined
lib/natural/ngrams/index.d.ts:39
↓ 20 callers
Method
key
()
lib/natural/brill_pos_tagger/lib/TransformationRule.js:38
↓ 20 callers
Function
normalizeJa
(str)
lib/natural/normalizers/normalizer_ja.js:644
↓ 20 callers
Method
step4
(word)
lib/natural/stemmers/porter_stemmer_nl.js:315
↓ 19 callers
Function
peg$fail
(expected)
lib/natural/brill_pos_tagger/lib/TF_Parser.js:300
↓ 18 callers
Method
endsInArr
(word, suffixes)
lib/natural/stemmers/porter_stemmer_es.js:67
↓ 18 callers
Method
hasPathTo
(v)
lib/natural/util/longest_path_tree.js:85
↓ 18 callers
Method
pathTo
(v)
lib/natural/util/longest_path_tree.js:89
↓ 18 callers
Function
replacer
* Generate a replacing function given a table of patterns. Inspired by: * http://code.google.com/p/jslibs/wiki/JavascriptTips#String_converter * T
lib/natural/util/utils.js:34
↓ 17 callers
Method
contains
(item)
lib/natural/util/bag.js:41
↓ 17 callers
Function
endsinArr
(token, suffixes)
lib/natural/stemmers/porter_stemmer_it.js:57
↓ 16 callers
Method
addString
* Add a single string to the TRIE, returns true if the word was already in the * trie.
lib/natural/trie/trie.js:44
↓ 16 callers
Method
getDistTo
(v)
lib/natural/util/longest_path_tree.js:81
↓ 16 callers
Function
isVowel
(letter)
lib/natural/stemmers/porter_stemmer_fr.js:357
↓ 16 callers
Method
step1
(word)
lib/natural/stemmers/porter_stemmer_nl.js:197
↓ 16 callers
Method
tokenizeAndStem
(text, keepStops)
lib/natural/stemmers/stemmer_nl.js:33
↓ 15 callers
Function
levenshteinDistance
(source, target, options)
lib/natural/distance/levenshtein_distance.js:122
↓ 15 callers
Method
size
()
lib/natural/classifiers/maxent/Sample.js:94
↓ 15 callers
Method
toString
()
lib/natural/util/directed_edge.js:44
↓ 14 callers
Method
addFileSync
(path, encoding, key, restoreCache)
lib/natural/tfidf/tfidf.js:156
↓ 13 callers
Method
step1b
(word, suffixes)
lib/natural/stemmers/porter_stemmer_nl.js:175
↓ 12 callers
Function
find
(word)
lib/natural/stemmers/indonesian/stemmer_id.js:122
↓ 12 callers
Method
isVowel
(c)
lib/natural/stemmers/porter_stemmer_es.js:29
↓ 12 callers
Method
test
(corpus, tagger)
lib/natural/brill_pos_tagger/lib/Brill_POS_Tester.js:22
↓ 12 callers
Method
tfidfs
(terms, callback)
lib/natural/tfidf/tfidf.js:209
↓ 11 callers
Method
compare
(stringA, stringB)
lib/natural/phonetics/phonetic.js:30
↓ 11 callers
Method
from
()
lib/natural/util/directed_edge.js:36
↓ 11 callers
Method
load
(filename, ElementClass, callback)
lib/natural/classifiers/maxent/Sample.js:121
↓ 11 callers
Function
removeSuffix
(str, len)
lib/natural/stemmers/porter_stemmer_nl.js:60
↓ 10 callers
Function
DamerauLevenshteinDistance
(source, target, options)
lib/natural/distance/levenshtein_distance.js:94
↓ 10 callers
Method
toString
()
lib/natural/classifiers/maxent/Distribution.js:36
↓ 9 callers
Method
addStrings
* Add multiple strings to the TRIE
lib/natural/trie/trie.js:71
↓ 9 callers
Function
endsin
(str, suffix)
lib/natural/stemmers/porter_stemmer_nl.js:54
↓ 9 callers
Method
get
(node, word)
lib/natural/trie/trie.js:96
↓ 9 callers
Function
isVowel
(letter)
lib/natural/stemmers/porter_stemmer_it.js:30
↓ 9 callers
Method
isVowel
(c)
lib/natural/phonetics/double_metaphone.js:28
↓ 9 callers
Method
save
(filename, callback)
lib/natural/classifiers/maxent/Sample.js:108
↓ 9 callers
Method
score
()
lib/natural/brill_pos_tagger/lib/TransformationRule.js:94
↓ 9 callers
Function
testSentenceType
(args: TaggedSentence, sentenceType: SenType, callback: CallbackFunction | null)
spec/sentence_analyzer_spec.ts:172
↓ 9 callers
Method
tf
(term, document)
lib/natural/tfidf/tfidf.js:88
↓ 8 callers
Function
approxEql
(val1: number, val2: number)
spec/jaro-winkler_spec.ts:34
↓ 8 callers
Function
attemptReplacePatterns
(token, patterns)
lib/natural/stemmers/porter_stemmer_ru.js:30
↓ 8 callers
Function
attemptReplacePatterns
(token, patterns)
lib/natural/stemmers/porter_stemmer_uk.js:8
↓ 8 callers
Method
ize
(token, formSet, customForms)
lib/natural/inflectors/singular_plural_inflector.js:44
↓ 8 callers
Method
to
()
lib/natural/util/directed_edge.js:40
↓ 7 callers
Method
addRule
(rule)
lib/natural/brill_pos_tagger/lib/RuleSet.js:52
↓ 7 callers
Method
dropInitialLetters
(token)
lib/natural/phonetics/metaphone.js:32
↓ 7 callers
Method
getClassifications
(observation)
lib/natural/classifiers/classifier.js:134
↓ 7 callers
Method
getRules
(i, j)
lib/natural/brill_pos_tagger/lib/Brill_POS_Trainer.js:120
↓ 7 callers
Method
idf
(term, force)
lib/natural/tfidf/tfidf.js:94
↓ 7 callers
Function
isVowel
(x)
lib/natural/stemmers/porter_stemmer_nl.js:35
↓ 7 callers
Function
peg$literalExpectation
(text, ignoreCase)
lib/natural/brill_pos_tagger/lib/TF_Parser.js:229
↓ 7 callers
Method
removeDocument
(key)
lib/natural/tfidf/tfidf.js:138
↓ 6 callers
Method
addFeature
(feature)
lib/natural/classifiers/maxent/FeatureSet.js:33
↓ 6 callers
Method
apply
(x)
lib/natural/classifiers/maxent/Feature.js:42
↓ 6 callers
Method
cTransform
(token)
lib/natural/phonetics/metaphone.js:42
↓ 6 callers
Method
calculateAPriori
(x)
lib/natural/classifiers/maxent/Distribution.js:50
↓ 6 callers
Function
flip
* Exchanges all keys with their associated values in an object. * * @param {Object.<string, string>} obj An object of strings. * @return {Object
lib/natural/util/utils.js:81
↓ 6 callers
Method
getCorrections
(word, maxDistance)
lib/natural/spellcheck/spellcheck.js:50
↓ 6 callers
Method
katakanaHF
(str)
lib/natural/normalizers/normalizer_ja.js:578
↓ 6 callers
Function
measure
(token)
lib/natural/stemmers/porter_stemmer.js:40
↓ 5 callers
Method
alphabetHF
(str)
lib/natural/normalizers/normalizer_ja.js:558
↓ 5 callers
Method
dropG
(token)
lib/natural/phonetics/metaphone.js:59
↓ 5 callers
Method
endsIn
(word, suffix)
lib/natural/stemmers/porter_stemmer_es.js:59
↓ 5 callers
Function
getR1
(token)
lib/natural/stemmers/porter_stemmer_no.js:28
↓ 5 callers
Function
getRegions
(str)
lib/natural/stemmers/porter_stemmer_sv.js:28
↓ 5 callers
Method
getSize
* Computes the number of actual nodes from this node to the end. * Note: This involves traversing the entire structure and may not be * good for
lib/natural/trie/trie.js:222
↓ 5 callers
Method
katakanaFH
(str)
lib/natural/normalizers/normalizer_ja.js:546
↓ 5 callers
Method
numbersHF
(str)
lib/natural/normalizers/normalizer_ja.js:562
↓ 5 callers
Function
peg$computeLocation
(startPos, endPos)
lib/natural/brill_pos_tagger/lib/TF_Parser.js:282
↓ 5 callers
Function
peg$parseEOL
()
lib/natural/brill_pos_tagger/lib/TF_Parser.js:448
↓ 5 callers
Function
peg$parseidentifier
()
lib/natural/brill_pos_tagger/lib/TF_Parser.js:375
↓ 5 callers
Method
prelude
(word)
lib/natural/stemmers/porter_stemmer_nl.js:162
↓ 5 callers
Method
punctuationFH
(str)
lib/natural/normalizers/normalizer_ja.js:542
↓ 5 callers
Method
setStorageType
(storageType)
lib/natural/util/storage/StorageBackend.js:52
↓ 5 callers
Method
setTokenizer
(t: Tokenizer)
lib/natural/ngrams/index.d.ts:38
↓ 5 callers
Method
transformG
(token)
lib/natural/phonetics/metaphone.js:66
↓ 5 callers
Method
transformLipps
(token)
lib/natural/phonetics/soundex.js:36
↓ 5 callers
Method
transformS
(token)
lib/natural/phonetics/metaphone.js:91
↓ 4 callers
Method
addTaggedWord
(token, tag)
lib/natural/brill_pos_tagger/lib/Sentence.js:29
↓ 4 callers
Method
alphabetFH
(str)
lib/natural/normalizers/normalizer_ja.js:526
next →
1–100 of 759, ranked by callers