natural 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +7 -0
- package/README.md +3 -3
- package/lib/natural/inflectors/present_verb_inflector.js +1 -0
- package/lib/natural/phonetics/double_metaphone.js +9 -4
- package/lib/natural/phonetics/metaphone.js +4 -0
- package/lib/natural/phonetics/soundex.js +11 -7
- package/lib/natural/stemmers/porter_stemmer.js +90 -62
- package/lib/natural/stemmers/porter_stemmer_pt.js +302 -0
- package/lib/natural/stemmers/stemmer_pt.js +65 -0
- package/lib/natural/stemmers/token.js +163 -0
- package/lib/natural/util/stopwords_pt.js +136 -0
- package/package.json +2 -2
- package/spec/double_metaphone_spec.js +10 -1
- package/spec/metaphone_spec.js +5 -0
- package/spec/porter_stemmer_pt_spec.js +50 -0
- package/spec/porter_stemmer_spec.js +45 -0
- package/spec/present_verb_inflector_spec.js +3 -0
- package/spec/soundex_spec.js +13 -9
- package/spec/stemmer_token_spec.js +161 -0
- package/spec/test_data/snowball_pt.txt +32016 -0
- package/coverage/coverage.json +0 -1
- package/coverage/lcov-report/index.html +0 -584
- package/coverage/lcov-report/io_spec/index.html +0 -350
- package/coverage/lcov-report/io_spec/tfidf_spec.js.html +0 -469
- package/coverage/lcov-report/lib/natural/analyzers/index.html +0 -350
- package/coverage/lcov-report/lib/natural/analyzers/sentence_analyzer.js.html +0 -850
- package/coverage/lcov-report/lib/natural/classifiers/bayes_classifier.js.html +0 -496
- package/coverage/lcov-report/lib/natural/classifiers/classifier.js.html +0 -823
- package/coverage/lcov-report/lib/natural/classifiers/index.html +0 -376
- package/coverage/lcov-report/lib/natural/classifiers/logistic_regression_classifier.js.html +0 -502
- package/coverage/lcov-report/lib/natural/distance/dice_coefficient.js.html +0 -529
- package/coverage/lcov-report/lib/natural/distance/index.html +0 -376
- package/coverage/lcov-report/lib/natural/distance/jaro-winkler_distance.js.html +0 -670
- package/coverage/lcov-report/lib/natural/distance/levenshtein_distance.js.html +0 -526
- package/coverage/lcov-report/lib/natural/index.html +0 -350
- package/coverage/lcov-report/lib/natural/index.js.html +0 -547
- package/coverage/lcov-report/lib/natural/inflectors/count_inflector.js.html +0 -484
- package/coverage/lcov-report/lib/natural/inflectors/form_set.js.html +0 -406
- package/coverage/lcov-report/lib/natural/inflectors/fr/count_inflector.js.html +0 -520
- package/coverage/lcov-report/lib/natural/inflectors/fr/index.html +0 -363
- package/coverage/lcov-report/lib/natural/inflectors/fr/noun_inflector.js.html +0 -1027
- package/coverage/lcov-report/lib/natural/inflectors/index.html +0 -402
- package/coverage/lcov-report/lib/natural/inflectors/ja/index.html +0 -350
- package/coverage/lcov-report/lib/natural/inflectors/ja/noun_inflector.js.html +0 -727
- package/coverage/lcov-report/lib/natural/inflectors/noun_inflector.js.html +0 -637
- package/coverage/lcov-report/lib/natural/inflectors/present_verb_inflector.js.html +0 -544
- package/coverage/lcov-report/lib/natural/inflectors/singular_plural_inflector.js.html +0 -649
- package/coverage/lcov-report/lib/natural/ngrams/index.html +0 -363
- package/coverage/lcov-report/lib/natural/ngrams/ngrams.js.html +0 -595
- package/coverage/lcov-report/lib/natural/ngrams/ngrams_zh.js.html +0 -571
- package/coverage/lcov-report/lib/natural/normalizers/index.html +0 -389
- package/coverage/lcov-report/lib/natural/normalizers/normalizer.js.html +0 -607
- package/coverage/lcov-report/lib/natural/normalizers/normalizer_ja.js.html +0 -2194
- package/coverage/lcov-report/lib/natural/normalizers/normalizer_no.js.html +0 -496
- package/coverage/lcov-report/lib/natural/normalizers/remove_diacritics.js.html +0 -685
- package/coverage/lcov-report/lib/natural/phonetics/dm_soundex.js.html +0 -1063
- package/coverage/lcov-report/lib/natural/phonetics/double_metaphone.js.html +0 -1840
- package/coverage/lcov-report/lib/natural/phonetics/index.html +0 -402
- package/coverage/lcov-report/lib/natural/phonetics/metaphone.js.html +0 -886
- package/coverage/lcov-report/lib/natural/phonetics/phonetic.js.html +0 -484
- package/coverage/lcov-report/lib/natural/phonetics/soundex.js.html +0 -562
- package/coverage/lcov-report/lib/natural/spellcheck/index.html +0 -350
- package/coverage/lcov-report/lib/natural/spellcheck/spellcheck.js.html +0 -562
- package/coverage/lcov-report/lib/natural/stemmers/index.html +0 -571
- package/coverage/lcov-report/lib/natural/stemmers/lancaster_rules.js.html +0 -2692
- package/coverage/lcov-report/lib/natural/stemmers/lancaster_stemmer.js.html +0 -544
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer.js.html +0 -937
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_es.js.html +0 -985
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_fa.js.html +0 -418
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_fr.js.html +0 -1450
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_it.js.html +0 -1018
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_no.js.html +0 -784
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_ru.js.html +0 -775
- package/coverage/lcov-report/lib/natural/stemmers/stemmer.js.html +0 -505
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_es.js.html +0 -496
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_fa.js.html +0 -484
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_fr.js.html +0 -496
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_it.js.html +0 -427
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_ja.js.html +0 -736
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_no.js.html +0 -505
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_pl.js.html +0 -496
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_ru.js.html +0 -496
- package/coverage/lcov-report/lib/natural/tfidf/index.html +0 -350
- package/coverage/lcov-report/lib/natural/tfidf/tfidf.js.html +0 -904
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_es.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_fa.js.html +0 -466
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_fr.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_it.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_nl.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_no.js.html +0 -439
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_pl.js.html +0 -457
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_pt.js.html +0 -442
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_ru.js.html +0 -457
- package/coverage/lcov-report/lib/natural/tokenizers/index.html +0 -519
- package/coverage/lcov-report/lib/natural/tokenizers/regexp_tokenizer.js.html +0 -580
- package/coverage/lcov-report/lib/natural/tokenizers/tokenizer.js.html +0 -475
- package/coverage/lcov-report/lib/natural/tokenizers/tokenizer_ja.js.html +0 -1153
- package/coverage/lcov-report/lib/natural/tokenizers/treebank_word_tokenizer.js.html +0 -544
- package/coverage/lcov-report/lib/natural/transliterators/ja/index.html +0 -350
- package/coverage/lcov-report/lib/natural/transliterators/ja/index.js.html +0 -2068
- package/coverage/lcov-report/lib/natural/trie/index.html +0 -350
- package/coverage/lcov-report/lib/natural/trie/trie.js.html +0 -1012
- package/coverage/lcov-report/lib/natural/util/bag.js.html +0 -472
- package/coverage/lcov-report/lib/natural/util/edge_weighted_digraph.js.html +0 -658
- package/coverage/lcov-report/lib/natural/util/index.html +0 -532
- package/coverage/lcov-report/lib/natural/util/longest_path_tree.js.html +0 -619
- package/coverage/lcov-report/lib/natural/util/shortest_path_tree.js.html +0 -622
- package/coverage/lcov-report/lib/natural/util/stopwords.js.html +0 -445
- package/coverage/lcov-report/lib/natural/util/stopwords_es.js.html +0 -430
- package/coverage/lcov-report/lib/natural/util/stopwords_fa.js.html +0 -436
- package/coverage/lcov-report/lib/natural/util/stopwords_fr.js.html +0 -904
- package/coverage/lcov-report/lib/natural/util/stopwords_it.js.html +0 -478
- package/coverage/lcov-report/lib/natural/util/stopwords_ja.js.html +0 -499
- package/coverage/lcov-report/lib/natural/util/stopwords_no.js.html +0 -445
- package/coverage/lcov-report/lib/natural/util/stopwords_pl.js.html +0 -508
- package/coverage/lcov-report/lib/natural/util/stopwords_ru.js.html +0 -445
- package/coverage/lcov-report/lib/natural/util/topological.js.html +0 -616
- package/coverage/lcov-report/lib/natural/util/utils.js.html +0 -679
- package/coverage/lcov-report/lib/natural/wordnet/data_file.js.html +0 -580
- package/coverage/lcov-report/lib/natural/wordnet/index.html +0 -389
- package/coverage/lcov-report/lib/natural/wordnet/index_file.js.html +0 -742
- package/coverage/lcov-report/lib/natural/wordnet/wordnet.js.html +0 -829
- package/coverage/lcov-report/lib/natural/wordnet/wordnet_file.js.html +0 -529
- package/coverage/lcov-report/natural/analyzers/index.html +0 -350
- package/coverage/lcov-report/natural/analyzers/sentence_analyzer.js.html +0 -850
- package/coverage/lcov-report/natural/classifiers/bayes_classifier.js.html +0 -496
- package/coverage/lcov-report/natural/classifiers/classifier.js.html +0 -823
- package/coverage/lcov-report/natural/classifiers/index.html +0 -376
- package/coverage/lcov-report/natural/classifiers/logistic_regression_classifier.js.html +0 -502
- package/coverage/lcov-report/natural/distance/dice_coefficient.js.html +0 -529
- package/coverage/lcov-report/natural/distance/index.html +0 -376
- package/coverage/lcov-report/natural/distance/jaro-winkler_distance.js.html +0 -670
- package/coverage/lcov-report/natural/distance/levenshtein_distance.js.html +0 -526
- package/coverage/lcov-report/natural/index.html +0 -350
- package/coverage/lcov-report/natural/index.js.html +0 -433
- package/coverage/lcov-report/natural/inflectors/count_inflector.js.html +0 -484
- package/coverage/lcov-report/natural/inflectors/form_set.js.html +0 -406
- package/coverage/lcov-report/natural/inflectors/fr/index.html +0 -350
- package/coverage/lcov-report/natural/inflectors/fr/noun_inflector.js.html +0 -1027
- package/coverage/lcov-report/natural/inflectors/index.html +0 -402
- package/coverage/lcov-report/natural/inflectors/ja/index.html +0 -350
- package/coverage/lcov-report/natural/inflectors/ja/noun_inflector.js.html +0 -727
- package/coverage/lcov-report/natural/inflectors/noun_inflector.js.html +0 -637
- package/coverage/lcov-report/natural/inflectors/present_verb_inflector.js.html +0 -544
- package/coverage/lcov-report/natural/inflectors/singular_plural_inflector.js.html +0 -649
- package/coverage/lcov-report/natural/lib/natural/analyzers/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/analyzers/sentence_analyzer.js.html +0 -850
- package/coverage/lcov-report/natural/lib/natural/classifiers/bayes_classifier.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/classifiers/classifier.js.html +0 -823
- package/coverage/lcov-report/natural/lib/natural/classifiers/index.html +0 -376
- package/coverage/lcov-report/natural/lib/natural/classifiers/logistic_regression_classifier.js.html +0 -502
- package/coverage/lcov-report/natural/lib/natural/distance/dice_coefficient.js.html +0 -529
- package/coverage/lcov-report/natural/lib/natural/distance/index.html +0 -376
- package/coverage/lcov-report/natural/lib/natural/distance/jaro-winkler_distance.js.html +0 -670
- package/coverage/lcov-report/natural/lib/natural/distance/levenshtein_distance.js.html +0 -526
- package/coverage/lcov-report/natural/lib/natural/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/index.js.html +0 -547
- package/coverage/lcov-report/natural/lib/natural/inflectors/count_inflector.js.html +0 -484
- package/coverage/lcov-report/natural/lib/natural/inflectors/form_set.js.html +0 -406
- package/coverage/lcov-report/natural/lib/natural/inflectors/fr/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/inflectors/fr/noun_inflector.js.html +0 -1027
- package/coverage/lcov-report/natural/lib/natural/inflectors/index.html +0 -402
- package/coverage/lcov-report/natural/lib/natural/inflectors/ja/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/inflectors/ja/noun_inflector.js.html +0 -727
- package/coverage/lcov-report/natural/lib/natural/inflectors/noun_inflector.js.html +0 -637
- package/coverage/lcov-report/natural/lib/natural/inflectors/present_verb_inflector.js.html +0 -544
- package/coverage/lcov-report/natural/lib/natural/inflectors/singular_plural_inflector.js.html +0 -649
- package/coverage/lcov-report/natural/lib/natural/ngrams/index.html +0 -363
- package/coverage/lcov-report/natural/lib/natural/ngrams/ngrams.js.html +0 -595
- package/coverage/lcov-report/natural/lib/natural/ngrams/ngrams_zh.js.html +0 -571
- package/coverage/lcov-report/natural/lib/natural/normalizers/index.html +0 -389
- package/coverage/lcov-report/natural/lib/natural/normalizers/normalizer.js.html +0 -607
- package/coverage/lcov-report/natural/lib/natural/normalizers/normalizer_ja.js.html +0 -2194
- package/coverage/lcov-report/natural/lib/natural/normalizers/normalizer_no.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/normalizers/remove_diacritics.js.html +0 -685
- package/coverage/lcov-report/natural/lib/natural/phonetics/dm_soundex.js.html +0 -1063
- package/coverage/lcov-report/natural/lib/natural/phonetics/double_metaphone.js.html +0 -1840
- package/coverage/lcov-report/natural/lib/natural/phonetics/index.html +0 -402
- package/coverage/lcov-report/natural/lib/natural/phonetics/metaphone.js.html +0 -886
- package/coverage/lcov-report/natural/lib/natural/phonetics/phonetic.js.html +0 -484
- package/coverage/lcov-report/natural/lib/natural/phonetics/soundex.js.html +0 -562
- package/coverage/lcov-report/natural/lib/natural/stemmers/index.html +0 -571
- package/coverage/lcov-report/natural/lib/natural/stemmers/lancaster_rules.js.html +0 -2692
- package/coverage/lcov-report/natural/lib/natural/stemmers/lancaster_stemmer.js.html +0 -544
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer.js.html +0 -937
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_es.js.html +0 -985
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_fa.js.html +0 -418
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_fr.js.html +0 -1450
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_it.js.html +0 -1018
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_no.js.html +0 -784
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_ru.js.html +0 -775
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer.js.html +0 -505
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_es.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_fa.js.html +0 -484
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_fr.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_it.js.html +0 -427
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_ja.js.html +0 -736
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_no.js.html +0 -505
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_pl.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_ru.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/tfidf/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/tfidf/tfidf.js.html +0 -904
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_es.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_fa.js.html +0 -466
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_fr.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_it.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_nl.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_no.js.html +0 -439
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_pl.js.html +0 -457
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_pt.js.html +0 -442
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_ru.js.html +0 -457
- package/coverage/lcov-report/natural/lib/natural/tokenizers/index.html +0 -519
- package/coverage/lcov-report/natural/lib/natural/tokenizers/regexp_tokenizer.js.html +0 -580
- package/coverage/lcov-report/natural/lib/natural/tokenizers/tokenizer.js.html +0 -475
- package/coverage/lcov-report/natural/lib/natural/tokenizers/tokenizer_ja.js.html +0 -1153
- package/coverage/lcov-report/natural/lib/natural/tokenizers/treebank_word_tokenizer.js.html +0 -544
- package/coverage/lcov-report/natural/lib/natural/transliterators/ja/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/transliterators/ja/index.js.html +0 -2068
- package/coverage/lcov-report/natural/lib/natural/trie/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/trie/trie.js.html +0 -1012
- package/coverage/lcov-report/natural/lib/natural/util/bag.js.html +0 -472
- package/coverage/lcov-report/natural/lib/natural/util/edge_weighted_digraph.js.html +0 -658
- package/coverage/lcov-report/natural/lib/natural/util/index.html +0 -532
- package/coverage/lcov-report/natural/lib/natural/util/longest_path_tree.js.html +0 -619
- package/coverage/lcov-report/natural/lib/natural/util/shortest_path_tree.js.html +0 -622
- package/coverage/lcov-report/natural/lib/natural/util/stopwords.js.html +0 -445
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_es.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_fa.js.html +0 -436
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_fr.js.html +0 -904
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_it.js.html +0 -478
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_ja.js.html +0 -499
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_no.js.html +0 -445
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_pl.js.html +0 -508
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_ru.js.html +0 -445
- package/coverage/lcov-report/natural/lib/natural/util/topological.js.html +0 -616
- package/coverage/lcov-report/natural/lib/natural/util/utils.js.html +0 -679
- package/coverage/lcov-report/natural/lib/natural/wordnet/data_file.js.html +0 -580
- package/coverage/lcov-report/natural/lib/natural/wordnet/index.html +0 -389
- package/coverage/lcov-report/natural/lib/natural/wordnet/index_file.js.html +0 -742
- package/coverage/lcov-report/natural/lib/natural/wordnet/wordnet.js.html +0 -829
- package/coverage/lcov-report/natural/lib/natural/wordnet/wordnet_file.js.html +0 -529
- package/coverage/lcov-report/natural/ngrams/index.html +0 -363
- package/coverage/lcov-report/natural/ngrams/ngrams.js.html +0 -595
- package/coverage/lcov-report/natural/ngrams/ngrams_zh.js.html +0 -571
- package/coverage/lcov-report/natural/normalizers/index.html +0 -389
- package/coverage/lcov-report/natural/normalizers/normalizer.js.html +0 -607
- package/coverage/lcov-report/natural/normalizers/normalizer_ja.js.html +0 -2194
- package/coverage/lcov-report/natural/normalizers/normalizer_no.js.html +0 -496
- package/coverage/lcov-report/natural/normalizers/remove_diacritics.js.html +0 -685
- package/coverage/lcov-report/natural/phonetics/dm_soundex.js.html +0 -1063
- package/coverage/lcov-report/natural/phonetics/double_metaphone.js.html +0 -1840
- package/coverage/lcov-report/natural/phonetics/index.html +0 -402
- package/coverage/lcov-report/natural/phonetics/metaphone.js.html +0 -886
- package/coverage/lcov-report/natural/phonetics/phonetic.js.html +0 -484
- package/coverage/lcov-report/natural/phonetics/soundex.js.html +0 -562
- package/coverage/lcov-report/natural/stemmers/index.html +0 -571
- package/coverage/lcov-report/natural/stemmers/lancaster_rules.js.html +0 -2692
- package/coverage/lcov-report/natural/stemmers/lancaster_stemmer.js.html +0 -544
- package/coverage/lcov-report/natural/stemmers/porter_stemmer.js.html +0 -937
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_es.js.html +0 -985
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_fa.js.html +0 -418
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_fr.js.html +0 -1450
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_it.js.html +0 -1018
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_no.js.html +0 -784
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_ru.js.html +0 -775
- package/coverage/lcov-report/natural/stemmers/stemmer.js.html +0 -505
- package/coverage/lcov-report/natural/stemmers/stemmer_es.js.html +0 -496
- package/coverage/lcov-report/natural/stemmers/stemmer_fa.js.html +0 -484
- package/coverage/lcov-report/natural/stemmers/stemmer_fr.js.html +0 -496
- package/coverage/lcov-report/natural/stemmers/stemmer_it.js.html +0 -427
- package/coverage/lcov-report/natural/stemmers/stemmer_ja.js.html +0 -736
- package/coverage/lcov-report/natural/stemmers/stemmer_no.js.html +0 -505
- package/coverage/lcov-report/natural/stemmers/stemmer_pl.js.html +0 -496
- package/coverage/lcov-report/natural/stemmers/stemmer_ru.js.html +0 -496
- package/coverage/lcov-report/natural/tfidf/index.html +0 -350
- package/coverage/lcov-report/natural/tfidf/tfidf.js.html +0 -904
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_es.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_fa.js.html +0 -466
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_fr.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_it.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_nl.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_no.js.html +0 -439
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_pl.js.html +0 -457
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_pt.js.html +0 -442
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_ru.js.html +0 -457
- package/coverage/lcov-report/natural/tokenizers/index.html +0 -519
- package/coverage/lcov-report/natural/tokenizers/regexp_tokenizer.js.html +0 -580
- package/coverage/lcov-report/natural/tokenizers/tokenizer.js.html +0 -475
- package/coverage/lcov-report/natural/tokenizers/tokenizer_ja.js.html +0 -1153
- package/coverage/lcov-report/natural/tokenizers/treebank_word_tokenizer.js.html +0 -544
- package/coverage/lcov-report/natural/transliterators/ja/index.html +0 -350
- package/coverage/lcov-report/natural/transliterators/ja/index.js.html +0 -2068
- package/coverage/lcov-report/natural/trie/index.html +0 -350
- package/coverage/lcov-report/natural/trie/trie.js.html +0 -1012
- package/coverage/lcov-report/natural/util/bag.js.html +0 -472
- package/coverage/lcov-report/natural/util/edge_weighted_digraph.js.html +0 -658
- package/coverage/lcov-report/natural/util/index.html +0 -532
- package/coverage/lcov-report/natural/util/longest_path_tree.js.html +0 -619
- package/coverage/lcov-report/natural/util/shortest_path_tree.js.html +0 -622
- package/coverage/lcov-report/natural/util/stopwords.js.html +0 -445
- package/coverage/lcov-report/natural/util/stopwords_es.js.html +0 -430
- package/coverage/lcov-report/natural/util/stopwords_fa.js.html +0 -436
- package/coverage/lcov-report/natural/util/stopwords_fr.js.html +0 -904
- package/coverage/lcov-report/natural/util/stopwords_it.js.html +0 -478
- package/coverage/lcov-report/natural/util/stopwords_ja.js.html +0 -499
- package/coverage/lcov-report/natural/util/stopwords_no.js.html +0 -445
- package/coverage/lcov-report/natural/util/stopwords_pl.js.html +0 -508
- package/coverage/lcov-report/natural/util/stopwords_ru.js.html +0 -445
- package/coverage/lcov-report/natural/util/topological.js.html +0 -616
- package/coverage/lcov-report/natural/util/utils.js.html +0 -679
- package/coverage/lcov-report/natural/wordnet/data_file.js.html +0 -580
- package/coverage/lcov-report/natural/wordnet/index.html +0 -389
- package/coverage/lcov-report/natural/wordnet/index_file.js.html +0 -742
- package/coverage/lcov-report/natural/wordnet/wordnet.js.html +0 -829
- package/coverage/lcov-report/natural/wordnet/wordnet_file.js.html +0 -529
- package/coverage/lcov-report/normalizers/index.html +0 -350
- package/coverage/lcov-report/normalizers/normalizer.js.html +0 -607
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -1
- package/coverage/lcov-report/spec/aggressive_tokenizer_es_spec.js.html +0 -430
- package/coverage/lcov-report/spec/aggressive_tokenizer_fr_spec.js.html +0 -625
- package/coverage/lcov-report/spec/aggressive_tokenizer_nl_spec.js.html +0 -430
- package/coverage/lcov-report/spec/aggressive_tokenizer_pt_spec.js.html +0 -490
- package/coverage/lcov-report/spec/aggressive_tokenizer_spec.js.html +0 -490
- package/coverage/lcov-report/spec/bayes_classifier_spec.js.html +0 -841
- package/coverage/lcov-report/spec/classifier_spec.js.html +0 -847
- package/coverage/lcov-report/spec/count_inflector_fr_spec.js.html +0 -454
- package/coverage/lcov-report/spec/count_inflector_spec.js.html +0 -538
- package/coverage/lcov-report/spec/dice_coefficient_spec.js.html +0 -400
- package/coverage/lcov-report/spec/double_metaphone_spec.js.html +0 -2548
- package/coverage/lcov-report/spec/index.html +0 -883
- package/coverage/lcov-report/spec/jaro-winkler_spec.js.html +0 -481
- package/coverage/lcov-report/spec/lancaster_stemmer_spec.js.html +0 -541
- package/coverage/lcov-report/spec/levenshtein_spec.js.html +0 -520
- package/coverage/lcov-report/spec/logistic_regression_classifier_spec.js.html +0 -688
- package/coverage/lcov-report/spec/longest_path_tree_spec.js.html +0 -628
- package/coverage/lcov-report/spec/metaphone_spec.js.html +0 -1063
- package/coverage/lcov-report/spec/ngram_spec.js.html +0 -712
- package/coverage/lcov-report/spec/ngram_zh_spec.js.html +0 -688
- package/coverage/lcov-report/spec/normalizer_ja_spec.js.html +0 -802
- package/coverage/lcov-report/spec/normalizer_no_spec.js.html +0 -655
- package/coverage/lcov-report/spec/normalizer_spec.js.html +0 -742
- package/coverage/lcov-report/spec/noun_inflector_fr_spec.js.html +0 -1750
- package/coverage/lcov-report/spec/noun_inflector_ja_spec.js.html +0 -658
- package/coverage/lcov-report/spec/noun_inflector_spec.js.html +0 -1132
- package/coverage/lcov-report/spec/porter_stemmer_fr_spec.js.html +0 -625
- package/coverage/lcov-report/spec/porter_stemmer_it_spec.js.html +0 -454
- package/coverage/lcov-report/spec/porter_stemmer_no_spec.js.html +0 -751
- package/coverage/lcov-report/spec/porter_stemmer_ru_spec.js.html +0 -511
- package/coverage/lcov-report/spec/porter_stemmer_spec.js.html +0 -733
- package/coverage/lcov-report/spec/present_verb_inflector_spec.js.html +0 -697
- package/coverage/lcov-report/spec/remove_diacritics_spec.js.html +0 -415
- package/coverage/lcov-report/spec/sentence_analyzer_spec.js.html +0 -1153
- package/coverage/lcov-report/spec/shortest_path_tree_spec.js.html +0 -718
- package/coverage/lcov-report/spec/soundex_spec.js.html +0 -784
- package/coverage/lcov-report/spec/spellcheck_spec.js.html +0 -598
- package/coverage/lcov-report/spec/stemmer_ja_spec.js.html +0 -520
- package/coverage/lcov-report/spec/tfidf_spec.js.html +0 -1288
- package/coverage/lcov-report/spec/tokenizer_ja_spec.js.html +0 -496
- package/coverage/lcov-report/spec/transliterator_ja_spec.js.html +0 -631
- package/coverage/lcov-report/spec/treebank_word_tokenizer_spec.js.html +0 -430
- package/coverage/lcov-report/spec/trie_spec.js.html +0 -940
- package/coverage/lcov-report/util/index.html +0 -350
- package/coverage/lcov-report/util/utils.js.html +0 -679
- package/coverage/lcov.info +0 -11094
- package/lib/natural/parsers/Agenda.js +0 -68
- package/lib/natural/parsers/CYKParser.js +0 -87
- package/lib/natural/parsers/CYK_Item.js +0 -159
- package/lib/natural/parsers/Chart.js +0 -211
- package/lib/natural/parsers/ChartParser.js +0 -60
- package/lib/natural/parsers/DoubleDottedItem.js +0 -226
- package/lib/natural/parsers/EarleyItem.js +0 -155
- package/lib/natural/parsers/EarleyParser.js +0 -58
- package/lib/natural/parsers/FunctionWordTagger.js +0 -84
- package/lib/natural/parsers/GoalItem.js +0 -206
- package/lib/natural/parsers/GrammarParser.js +0 -1289
- package/lib/natural/parsers/HeadCornerParser.js +0 -101
- package/lib/natural/parsers/LeftCornerParser.js +0 -58
- package/lib/natural/parsers/PEG-grammar-for-unification-grammar.txt +0 -345
|
@@ -1,1063 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for lib/natural/phonetics/dm_soundex.js</title>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
|
|
7
|
-
<link rel="stylesheet" href="../../../prettify.css">
|
|
8
|
-
|
|
9
|
-
<style>
|
|
10
|
-
body, html {
|
|
11
|
-
margin:0; padding: 0;
|
|
12
|
-
}
|
|
13
|
-
body {
|
|
14
|
-
font-family: Helvetica Neue, Helvetica,Arial;
|
|
15
|
-
font-size: 10pt;
|
|
16
|
-
}
|
|
17
|
-
div.header, div.footer {
|
|
18
|
-
background: #eee;
|
|
19
|
-
padding: 1em;
|
|
20
|
-
}
|
|
21
|
-
div.header {
|
|
22
|
-
z-index: 100;
|
|
23
|
-
position: fixed;
|
|
24
|
-
top: 0;
|
|
25
|
-
border-bottom: 1px solid #666;
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
div.footer {
|
|
29
|
-
border-top: 1px solid #666;
|
|
30
|
-
}
|
|
31
|
-
div.body {
|
|
32
|
-
margin-top: 10em;
|
|
33
|
-
}
|
|
34
|
-
div.meta {
|
|
35
|
-
font-size: 90%;
|
|
36
|
-
text-align: center;
|
|
37
|
-
}
|
|
38
|
-
h1, h2, h3 {
|
|
39
|
-
font-weight: normal;
|
|
40
|
-
}
|
|
41
|
-
h1 {
|
|
42
|
-
font-size: 12pt;
|
|
43
|
-
}
|
|
44
|
-
h2 {
|
|
45
|
-
font-size: 10pt;
|
|
46
|
-
}
|
|
47
|
-
pre {
|
|
48
|
-
font-family: Consolas, Menlo, Monaco, monospace;
|
|
49
|
-
margin: 0;
|
|
50
|
-
padding: 0;
|
|
51
|
-
line-height: 14px;
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
-moz-tab-size: 2;
|
|
54
|
-
-o-tab-size: 2;
|
|
55
|
-
tab-size: 2;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
div.path { font-size: 110%; }
|
|
59
|
-
div.path a:link, div.path a:visited { color: #000; }
|
|
60
|
-
table.coverage { border-collapse: collapse; margin:0; padding: 0 }
|
|
61
|
-
|
|
62
|
-
table.coverage td {
|
|
63
|
-
margin: 0;
|
|
64
|
-
padding: 0;
|
|
65
|
-
color: #111;
|
|
66
|
-
vertical-align: top;
|
|
67
|
-
}
|
|
68
|
-
table.coverage td.line-count {
|
|
69
|
-
width: 50px;
|
|
70
|
-
text-align: right;
|
|
71
|
-
padding-right: 5px;
|
|
72
|
-
}
|
|
73
|
-
table.coverage td.line-coverage {
|
|
74
|
-
color: #777 !important;
|
|
75
|
-
text-align: right;
|
|
76
|
-
border-left: 1px solid #666;
|
|
77
|
-
border-right: 1px solid #666;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
table.coverage td.text {
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
table.coverage td span.cline-any {
|
|
84
|
-
display: inline-block;
|
|
85
|
-
padding: 0 5px;
|
|
86
|
-
width: 40px;
|
|
87
|
-
}
|
|
88
|
-
table.coverage td span.cline-neutral {
|
|
89
|
-
background: #eee;
|
|
90
|
-
}
|
|
91
|
-
table.coverage td span.cline-yes {
|
|
92
|
-
background: #b5d592;
|
|
93
|
-
color: #999;
|
|
94
|
-
}
|
|
95
|
-
table.coverage td span.cline-no {
|
|
96
|
-
background: #fc8c84;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.cstat-yes { color: #111; }
|
|
100
|
-
.cstat-no { background: #fc8c84; color: #111; }
|
|
101
|
-
.fstat-no { background: #ffc520; color: #111 !important; }
|
|
102
|
-
.cbranch-no { background: yellow !important; color: #111; }
|
|
103
|
-
|
|
104
|
-
.cstat-skip { background: #ddd; color: #111; }
|
|
105
|
-
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
106
|
-
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
107
|
-
|
|
108
|
-
.missing-if-branch {
|
|
109
|
-
display: inline-block;
|
|
110
|
-
margin-right: 10px;
|
|
111
|
-
position: relative;
|
|
112
|
-
padding: 0 4px;
|
|
113
|
-
background: black;
|
|
114
|
-
color: yellow;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.skip-if-branch {
|
|
118
|
-
display: none;
|
|
119
|
-
margin-right: 10px;
|
|
120
|
-
position: relative;
|
|
121
|
-
padding: 0 4px;
|
|
122
|
-
background: #ccc;
|
|
123
|
-
color: white;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
127
|
-
color: inherit !important;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.entity, .metric { font-weight: bold; }
|
|
131
|
-
.metric { display: inline-block; border: 1px solid #333; padding: 0.3em; background: white; }
|
|
132
|
-
.metric small { font-size: 80%; font-weight: normal; color: #666; }
|
|
133
|
-
|
|
134
|
-
div.coverage-summary table { border-collapse: collapse; margin: 3em; font-size: 110%; }
|
|
135
|
-
div.coverage-summary td, div.coverage-summary table th { margin: 0; padding: 0.25em 1em; border-top: 1px solid #666; border-bottom: 1px solid #666; }
|
|
136
|
-
div.coverage-summary th { text-align: left; border: 1px solid #666; background: #eee; font-weight: normal; }
|
|
137
|
-
div.coverage-summary th.file { border-right: none !important; }
|
|
138
|
-
div.coverage-summary th.pic { border-left: none !important; text-align: right; }
|
|
139
|
-
div.coverage-summary th.pct { border-right: none !important; }
|
|
140
|
-
div.coverage-summary th.abs { border-left: none !important; text-align: right; }
|
|
141
|
-
div.coverage-summary td.pct { text-align: right; border-left: 1px solid #666; }
|
|
142
|
-
div.coverage-summary td.abs { text-align: right; font-size: 90%; color: #444; border-right: 1px solid #666; }
|
|
143
|
-
div.coverage-summary td.file { text-align: right; border-left: 1px solid #666; white-space: nowrap; }
|
|
144
|
-
div.coverage-summary td.pic { min-width: 120px !important; }
|
|
145
|
-
div.coverage-summary a:link { text-decoration: none; color: #000; }
|
|
146
|
-
div.coverage-summary a:visited { text-decoration: none; color: #333; }
|
|
147
|
-
div.coverage-summary a:hover { text-decoration: underline; }
|
|
148
|
-
div.coverage-summary tfoot td { border-top: 1px solid #666; }
|
|
149
|
-
|
|
150
|
-
div.coverage-summary .yui3-datatable-sort-indicator, div.coverage-summary .dummy-sort-indicator {
|
|
151
|
-
height: 10px;
|
|
152
|
-
width: 7px;
|
|
153
|
-
display: inline-block;
|
|
154
|
-
margin-left: 0.5em;
|
|
155
|
-
}
|
|
156
|
-
div.coverage-summary .yui3-datatable-sort-indicator {
|
|
157
|
-
background: url("https://yui-s.yahooapis.com/3.6.0/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png") no-repeat scroll 0 0 transparent;
|
|
158
|
-
}
|
|
159
|
-
div.coverage-summary .yui3-datatable-sorted .yui3-datatable-sort-indicator {
|
|
160
|
-
background-position: 0 -20px;
|
|
161
|
-
}
|
|
162
|
-
div.coverage-summary .yui3-datatable-sorted-desc .yui3-datatable-sort-indicator {
|
|
163
|
-
background-position: 0 -10px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.high { background: #b5d592 !important; }
|
|
167
|
-
.medium { background: #ffe87c !important; }
|
|
168
|
-
.low { background: #fc8c84 !important; }
|
|
169
|
-
|
|
170
|
-
span.cover-fill, span.cover-empty {
|
|
171
|
-
display:inline-block;
|
|
172
|
-
border:1px solid #444;
|
|
173
|
-
background: white;
|
|
174
|
-
height: 12px;
|
|
175
|
-
}
|
|
176
|
-
span.cover-fill {
|
|
177
|
-
background: #ccc;
|
|
178
|
-
border-right: 1px solid #444;
|
|
179
|
-
}
|
|
180
|
-
span.cover-empty {
|
|
181
|
-
background: white;
|
|
182
|
-
border-left: none;
|
|
183
|
-
}
|
|
184
|
-
span.cover-full {
|
|
185
|
-
border-right: none !important;
|
|
186
|
-
}
|
|
187
|
-
pre.prettyprint {
|
|
188
|
-
border: none !important;
|
|
189
|
-
padding: 0 !important;
|
|
190
|
-
margin: 0 !important;
|
|
191
|
-
}
|
|
192
|
-
.com { color: #999 !important; }
|
|
193
|
-
.ignore-none { color: #999; font-weight: normal; }
|
|
194
|
-
|
|
195
|
-
</style>
|
|
196
|
-
</head>
|
|
197
|
-
<body>
|
|
198
|
-
<div class="header low">
|
|
199
|
-
<h1>Code coverage report for <span class="entity">lib/natural/phonetics/dm_soundex.js</span></h1>
|
|
200
|
-
<h2>
|
|
201
|
-
|
|
202
|
-
Statements: <span class="metric">20% <small>(8 / 40)</small></span>
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
Branches: <span class="metric">0% <small>(0 / 24)</small></span>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
Functions: <span class="metric">0% <small>(0 / 3)</small></span>
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
Lines: <span class="metric">21.05% <small>(8 / 38)</small></span>
|
|
212
|
-
|
|
213
|
-
Ignored: <span class="metric"><span class="ignore-none">none</span></span>
|
|
214
|
-
</h2>
|
|
215
|
-
<div class="path"><a href="../../../index.html">All files</a> » <a href="index.html">lib/natural/phonetics/</a> » dm_soundex.js</div>
|
|
216
|
-
</div>
|
|
217
|
-
<div class="body">
|
|
218
|
-
<pre><table class="coverage">
|
|
219
|
-
<tr><td class="line-count">1
|
|
220
|
-
2
|
|
221
|
-
3
|
|
222
|
-
4
|
|
223
|
-
5
|
|
224
|
-
6
|
|
225
|
-
7
|
|
226
|
-
8
|
|
227
|
-
9
|
|
228
|
-
10
|
|
229
|
-
11
|
|
230
|
-
12
|
|
231
|
-
13
|
|
232
|
-
14
|
|
233
|
-
15
|
|
234
|
-
16
|
|
235
|
-
17
|
|
236
|
-
18
|
|
237
|
-
19
|
|
238
|
-
20
|
|
239
|
-
21
|
|
240
|
-
22
|
|
241
|
-
23
|
|
242
|
-
24
|
|
243
|
-
25
|
|
244
|
-
26
|
|
245
|
-
27
|
|
246
|
-
28
|
|
247
|
-
29
|
|
248
|
-
30
|
|
249
|
-
31
|
|
250
|
-
32
|
|
251
|
-
33
|
|
252
|
-
34
|
|
253
|
-
35
|
|
254
|
-
36
|
|
255
|
-
37
|
|
256
|
-
38
|
|
257
|
-
39
|
|
258
|
-
40
|
|
259
|
-
41
|
|
260
|
-
42
|
|
261
|
-
43
|
|
262
|
-
44
|
|
263
|
-
45
|
|
264
|
-
46
|
|
265
|
-
47
|
|
266
|
-
48
|
|
267
|
-
49
|
|
268
|
-
50
|
|
269
|
-
51
|
|
270
|
-
52
|
|
271
|
-
53
|
|
272
|
-
54
|
|
273
|
-
55
|
|
274
|
-
56
|
|
275
|
-
57
|
|
276
|
-
58
|
|
277
|
-
59
|
|
278
|
-
60
|
|
279
|
-
61
|
|
280
|
-
62
|
|
281
|
-
63
|
|
282
|
-
64
|
|
283
|
-
65
|
|
284
|
-
66
|
|
285
|
-
67
|
|
286
|
-
68
|
|
287
|
-
69
|
|
288
|
-
70
|
|
289
|
-
71
|
|
290
|
-
72
|
|
291
|
-
73
|
|
292
|
-
74
|
|
293
|
-
75
|
|
294
|
-
76
|
|
295
|
-
77
|
|
296
|
-
78
|
|
297
|
-
79
|
|
298
|
-
80
|
|
299
|
-
81
|
|
300
|
-
82
|
|
301
|
-
83
|
|
302
|
-
84
|
|
303
|
-
85
|
|
304
|
-
86
|
|
305
|
-
87
|
|
306
|
-
88
|
|
307
|
-
89
|
|
308
|
-
90
|
|
309
|
-
91
|
|
310
|
-
92
|
|
311
|
-
93
|
|
312
|
-
94
|
|
313
|
-
95
|
|
314
|
-
96
|
|
315
|
-
97
|
|
316
|
-
98
|
|
317
|
-
99
|
|
318
|
-
100
|
|
319
|
-
101
|
|
320
|
-
102
|
|
321
|
-
103
|
|
322
|
-
104
|
|
323
|
-
105
|
|
324
|
-
106
|
|
325
|
-
107
|
|
326
|
-
108
|
|
327
|
-
109
|
|
328
|
-
110
|
|
329
|
-
111
|
|
330
|
-
112
|
|
331
|
-
113
|
|
332
|
-
114
|
|
333
|
-
115
|
|
334
|
-
116
|
|
335
|
-
117
|
|
336
|
-
118
|
|
337
|
-
119
|
|
338
|
-
120
|
|
339
|
-
121
|
|
340
|
-
122
|
|
341
|
-
123
|
|
342
|
-
124
|
|
343
|
-
125
|
|
344
|
-
126
|
|
345
|
-
127
|
|
346
|
-
128
|
|
347
|
-
129
|
|
348
|
-
130
|
|
349
|
-
131
|
|
350
|
-
132
|
|
351
|
-
133
|
|
352
|
-
134
|
|
353
|
-
135
|
|
354
|
-
136
|
|
355
|
-
137
|
|
356
|
-
138
|
|
357
|
-
139
|
|
358
|
-
140
|
|
359
|
-
141
|
|
360
|
-
142
|
|
361
|
-
143
|
|
362
|
-
144
|
|
363
|
-
145
|
|
364
|
-
146
|
|
365
|
-
147
|
|
366
|
-
148
|
|
367
|
-
149
|
|
368
|
-
150
|
|
369
|
-
151
|
|
370
|
-
152
|
|
371
|
-
153
|
|
372
|
-
154
|
|
373
|
-
155
|
|
374
|
-
156
|
|
375
|
-
157
|
|
376
|
-
158
|
|
377
|
-
159
|
|
378
|
-
160
|
|
379
|
-
161
|
|
380
|
-
162
|
|
381
|
-
163
|
|
382
|
-
164
|
|
383
|
-
165
|
|
384
|
-
166
|
|
385
|
-
167
|
|
386
|
-
168
|
|
387
|
-
169
|
|
388
|
-
170
|
|
389
|
-
171
|
|
390
|
-
172
|
|
391
|
-
173
|
|
392
|
-
174
|
|
393
|
-
175
|
|
394
|
-
176
|
|
395
|
-
177
|
|
396
|
-
178
|
|
397
|
-
179
|
|
398
|
-
180
|
|
399
|
-
181
|
|
400
|
-
182
|
|
401
|
-
183
|
|
402
|
-
184
|
|
403
|
-
185
|
|
404
|
-
186
|
|
405
|
-
187
|
|
406
|
-
188
|
|
407
|
-
189
|
|
408
|
-
190
|
|
409
|
-
191
|
|
410
|
-
192
|
|
411
|
-
193
|
|
412
|
-
194
|
|
413
|
-
195
|
|
414
|
-
196
|
|
415
|
-
197
|
|
416
|
-
198
|
|
417
|
-
199
|
|
418
|
-
200
|
|
419
|
-
201
|
|
420
|
-
202
|
|
421
|
-
203
|
|
422
|
-
204
|
|
423
|
-
205
|
|
424
|
-
206
|
|
425
|
-
207
|
|
426
|
-
208
|
|
427
|
-
209
|
|
428
|
-
210
|
|
429
|
-
211
|
|
430
|
-
212
|
|
431
|
-
213
|
|
432
|
-
214
|
|
433
|
-
215
|
|
434
|
-
216
|
|
435
|
-
217
|
|
436
|
-
218
|
|
437
|
-
219
|
|
438
|
-
220
|
|
439
|
-
221
|
|
440
|
-
222
|
|
441
|
-
223
|
|
442
|
-
224
|
|
443
|
-
225
|
|
444
|
-
226
|
|
445
|
-
227
|
|
446
|
-
228
|
|
447
|
-
229
|
|
448
|
-
230
|
|
449
|
-
231
|
|
450
|
-
232
|
|
451
|
-
233
|
|
452
|
-
234
|
|
453
|
-
235
|
|
454
|
-
236
|
|
455
|
-
237
|
|
456
|
-
238
|
|
457
|
-
239
|
|
458
|
-
240
|
|
459
|
-
241
|
|
460
|
-
242
|
|
461
|
-
243
|
|
462
|
-
244
|
|
463
|
-
245
|
|
464
|
-
246
|
|
465
|
-
247
|
|
466
|
-
248</td><td class="line-coverage"><span class="cline-any cline-neutral"> </span>
|
|
467
|
-
<span class="cline-any cline-neutral"> </span>
|
|
468
|
-
<span class="cline-any cline-neutral"> </span>
|
|
469
|
-
<span class="cline-any cline-neutral"> </span>
|
|
470
|
-
<span class="cline-any cline-neutral"> </span>
|
|
471
|
-
<span class="cline-any cline-neutral"> </span>
|
|
472
|
-
<span class="cline-any cline-neutral"> </span>
|
|
473
|
-
<span class="cline-any cline-neutral"> </span>
|
|
474
|
-
<span class="cline-any cline-neutral"> </span>
|
|
475
|
-
<span class="cline-any cline-neutral"> </span>
|
|
476
|
-
<span class="cline-any cline-neutral"> </span>
|
|
477
|
-
<span class="cline-any cline-neutral"> </span>
|
|
478
|
-
<span class="cline-any cline-neutral"> </span>
|
|
479
|
-
<span class="cline-any cline-neutral"> </span>
|
|
480
|
-
<span class="cline-any cline-neutral"> </span>
|
|
481
|
-
<span class="cline-any cline-neutral"> </span>
|
|
482
|
-
<span class="cline-any cline-neutral"> </span>
|
|
483
|
-
<span class="cline-any cline-neutral"> </span>
|
|
484
|
-
<span class="cline-any cline-neutral"> </span>
|
|
485
|
-
<span class="cline-any cline-neutral"> </span>
|
|
486
|
-
<span class="cline-any cline-neutral"> </span>
|
|
487
|
-
<span class="cline-any cline-neutral"> </span>
|
|
488
|
-
<span class="cline-any cline-neutral"> </span>
|
|
489
|
-
<span class="cline-any cline-neutral"> </span>
|
|
490
|
-
<span class="cline-any cline-neutral"> </span>
|
|
491
|
-
<span class="cline-any cline-neutral"> </span>
|
|
492
|
-
<span class="cline-any cline-neutral"> </span>
|
|
493
|
-
<span class="cline-any cline-neutral"> </span>
|
|
494
|
-
<span class="cline-any cline-neutral"> </span>
|
|
495
|
-
<span class="cline-any cline-neutral"> </span>
|
|
496
|
-
<span class="cline-any cline-neutral"> </span>
|
|
497
|
-
<span class="cline-any cline-neutral"> </span>
|
|
498
|
-
<span class="cline-any cline-neutral"> </span>
|
|
499
|
-
<span class="cline-any cline-neutral"> </span>
|
|
500
|
-
<span class="cline-any cline-neutral"> </span>
|
|
501
|
-
<span class="cline-any cline-neutral"> </span>
|
|
502
|
-
<span class="cline-any cline-neutral"> </span>
|
|
503
|
-
<span class="cline-any cline-neutral"> </span>
|
|
504
|
-
<span class="cline-any cline-neutral"> </span>
|
|
505
|
-
<span class="cline-any cline-neutral"> </span>
|
|
506
|
-
<span class="cline-any cline-neutral"> </span>
|
|
507
|
-
<span class="cline-any cline-neutral"> </span>
|
|
508
|
-
<span class="cline-any cline-neutral"> </span>
|
|
509
|
-
<span class="cline-any cline-neutral"> </span>
|
|
510
|
-
<span class="cline-any cline-neutral"> </span>
|
|
511
|
-
<span class="cline-any cline-neutral"> </span>
|
|
512
|
-
<span class="cline-any cline-neutral"> </span>
|
|
513
|
-
<span class="cline-any cline-neutral"> </span>
|
|
514
|
-
<span class="cline-any cline-neutral"> </span>
|
|
515
|
-
<span class="cline-any cline-neutral"> </span>
|
|
516
|
-
<span class="cline-any cline-neutral"> </span>
|
|
517
|
-
<span class="cline-any cline-neutral"> </span>
|
|
518
|
-
<span class="cline-any cline-neutral"> </span>
|
|
519
|
-
<span class="cline-any cline-neutral"> </span>
|
|
520
|
-
<span class="cline-any cline-neutral"> </span>
|
|
521
|
-
<span class="cline-any cline-neutral"> </span>
|
|
522
|
-
<span class="cline-any cline-neutral"> </span>
|
|
523
|
-
<span class="cline-any cline-neutral"> </span>
|
|
524
|
-
<span class="cline-any cline-neutral"> </span>
|
|
525
|
-
<span class="cline-any cline-neutral"> </span>
|
|
526
|
-
<span class="cline-any cline-neutral"> </span>
|
|
527
|
-
<span class="cline-any cline-neutral"> </span>
|
|
528
|
-
<span class="cline-any cline-neutral"> </span>
|
|
529
|
-
<span class="cline-any cline-neutral"> </span>
|
|
530
|
-
<span class="cline-any cline-neutral"> </span>
|
|
531
|
-
<span class="cline-any cline-neutral"> </span>
|
|
532
|
-
<span class="cline-any cline-neutral"> </span>
|
|
533
|
-
<span class="cline-any cline-neutral"> </span>
|
|
534
|
-
<span class="cline-any cline-neutral"> </span>
|
|
535
|
-
<span class="cline-any cline-neutral"> </span>
|
|
536
|
-
<span class="cline-any cline-neutral"> </span>
|
|
537
|
-
<span class="cline-any cline-neutral"> </span>
|
|
538
|
-
<span class="cline-any cline-neutral"> </span>
|
|
539
|
-
<span class="cline-any cline-neutral"> </span>
|
|
540
|
-
<span class="cline-any cline-neutral"> </span>
|
|
541
|
-
<span class="cline-any cline-neutral"> </span>
|
|
542
|
-
<span class="cline-any cline-neutral"> </span>
|
|
543
|
-
<span class="cline-any cline-neutral"> </span>
|
|
544
|
-
<span class="cline-any cline-neutral"> </span>
|
|
545
|
-
<span class="cline-any cline-neutral"> </span>
|
|
546
|
-
<span class="cline-any cline-yes">1</span>
|
|
547
|
-
<span class="cline-any cline-neutral"> </span>
|
|
548
|
-
<span class="cline-any cline-neutral"> </span>
|
|
549
|
-
<span class="cline-any cline-neutral"> </span>
|
|
550
|
-
<span class="cline-any cline-neutral"> </span>
|
|
551
|
-
<span class="cline-any cline-neutral"> </span>
|
|
552
|
-
<span class="cline-any cline-neutral"> </span>
|
|
553
|
-
<span class="cline-any cline-neutral"> </span>
|
|
554
|
-
<span class="cline-any cline-neutral"> </span>
|
|
555
|
-
<span class="cline-any cline-neutral"> </span>
|
|
556
|
-
<span class="cline-any cline-neutral"> </span>
|
|
557
|
-
<span class="cline-any cline-neutral"> </span>
|
|
558
|
-
<span class="cline-any cline-neutral"> </span>
|
|
559
|
-
<span class="cline-any cline-neutral"> </span>
|
|
560
|
-
<span class="cline-any cline-neutral"> </span>
|
|
561
|
-
<span class="cline-any cline-neutral"> </span>
|
|
562
|
-
<span class="cline-any cline-neutral"> </span>
|
|
563
|
-
<span class="cline-any cline-neutral"> </span>
|
|
564
|
-
<span class="cline-any cline-neutral"> </span>
|
|
565
|
-
<span class="cline-any cline-neutral"> </span>
|
|
566
|
-
<span class="cline-any cline-neutral"> </span>
|
|
567
|
-
<span class="cline-any cline-neutral"> </span>
|
|
568
|
-
<span class="cline-any cline-neutral"> </span>
|
|
569
|
-
<span class="cline-any cline-neutral"> </span>
|
|
570
|
-
<span class="cline-any cline-neutral"> </span>
|
|
571
|
-
<span class="cline-any cline-neutral"> </span>
|
|
572
|
-
<span class="cline-any cline-neutral"> </span>
|
|
573
|
-
<span class="cline-any cline-neutral"> </span>
|
|
574
|
-
<span class="cline-any cline-neutral"> </span>
|
|
575
|
-
<span class="cline-any cline-neutral"> </span>
|
|
576
|
-
<span class="cline-any cline-neutral"> </span>
|
|
577
|
-
<span class="cline-any cline-neutral"> </span>
|
|
578
|
-
<span class="cline-any cline-neutral"> </span>
|
|
579
|
-
<span class="cline-any cline-neutral"> </span>
|
|
580
|
-
<span class="cline-any cline-neutral"> </span>
|
|
581
|
-
<span class="cline-any cline-neutral"> </span>
|
|
582
|
-
<span class="cline-any cline-neutral"> </span>
|
|
583
|
-
<span class="cline-any cline-neutral"> </span>
|
|
584
|
-
<span class="cline-any cline-neutral"> </span>
|
|
585
|
-
<span class="cline-any cline-neutral"> </span>
|
|
586
|
-
<span class="cline-any cline-neutral"> </span>
|
|
587
|
-
<span class="cline-any cline-neutral"> </span>
|
|
588
|
-
<span class="cline-any cline-neutral"> </span>
|
|
589
|
-
<span class="cline-any cline-neutral"> </span>
|
|
590
|
-
<span class="cline-any cline-neutral"> </span>
|
|
591
|
-
<span class="cline-any cline-neutral"> </span>
|
|
592
|
-
<span class="cline-any cline-neutral"> </span>
|
|
593
|
-
<span class="cline-any cline-neutral"> </span>
|
|
594
|
-
<span class="cline-any cline-neutral"> </span>
|
|
595
|
-
<span class="cline-any cline-neutral"> </span>
|
|
596
|
-
<span class="cline-any cline-neutral"> </span>
|
|
597
|
-
<span class="cline-any cline-neutral"> </span>
|
|
598
|
-
<span class="cline-any cline-neutral"> </span>
|
|
599
|
-
<span class="cline-any cline-neutral"> </span>
|
|
600
|
-
<span class="cline-any cline-neutral"> </span>
|
|
601
|
-
<span class="cline-any cline-neutral"> </span>
|
|
602
|
-
<span class="cline-any cline-neutral"> </span>
|
|
603
|
-
<span class="cline-any cline-neutral"> </span>
|
|
604
|
-
<span class="cline-any cline-neutral"> </span>
|
|
605
|
-
<span class="cline-any cline-neutral"> </span>
|
|
606
|
-
<span class="cline-any cline-neutral"> </span>
|
|
607
|
-
<span class="cline-any cline-neutral"> </span>
|
|
608
|
-
<span class="cline-any cline-neutral"> </span>
|
|
609
|
-
<span class="cline-any cline-neutral"> </span>
|
|
610
|
-
<span class="cline-any cline-neutral"> </span>
|
|
611
|
-
<span class="cline-any cline-neutral"> </span>
|
|
612
|
-
<span class="cline-any cline-neutral"> </span>
|
|
613
|
-
<span class="cline-any cline-neutral"> </span>
|
|
614
|
-
<span class="cline-any cline-neutral"> </span>
|
|
615
|
-
<span class="cline-any cline-neutral"> </span>
|
|
616
|
-
<span class="cline-any cline-neutral"> </span>
|
|
617
|
-
<span class="cline-any cline-neutral"> </span>
|
|
618
|
-
<span class="cline-any cline-neutral"> </span>
|
|
619
|
-
<span class="cline-any cline-neutral"> </span>
|
|
620
|
-
<span class="cline-any cline-neutral"> </span>
|
|
621
|
-
<span class="cline-any cline-neutral"> </span>
|
|
622
|
-
<span class="cline-any cline-neutral"> </span>
|
|
623
|
-
<span class="cline-any cline-neutral"> </span>
|
|
624
|
-
<span class="cline-any cline-neutral"> </span>
|
|
625
|
-
<span class="cline-any cline-neutral"> </span>
|
|
626
|
-
<span class="cline-any cline-neutral"> </span>
|
|
627
|
-
<span class="cline-any cline-neutral"> </span>
|
|
628
|
-
<span class="cline-any cline-neutral"> </span>
|
|
629
|
-
<span class="cline-any cline-neutral"> </span>
|
|
630
|
-
<span class="cline-any cline-neutral"> </span>
|
|
631
|
-
<span class="cline-any cline-neutral"> </span>
|
|
632
|
-
<span class="cline-any cline-neutral"> </span>
|
|
633
|
-
<span class="cline-any cline-neutral"> </span>
|
|
634
|
-
<span class="cline-any cline-neutral"> </span>
|
|
635
|
-
<span class="cline-any cline-neutral"> </span>
|
|
636
|
-
<span class="cline-any cline-neutral"> </span>
|
|
637
|
-
<span class="cline-any cline-neutral"> </span>
|
|
638
|
-
<span class="cline-any cline-neutral"> </span>
|
|
639
|
-
<span class="cline-any cline-neutral"> </span>
|
|
640
|
-
<span class="cline-any cline-neutral"> </span>
|
|
641
|
-
<span class="cline-any cline-neutral"> </span>
|
|
642
|
-
<span class="cline-any cline-neutral"> </span>
|
|
643
|
-
<span class="cline-any cline-yes">1</span>
|
|
644
|
-
<span class="cline-any cline-no"> </span>
|
|
645
|
-
<span class="cline-any cline-no"> </span>
|
|
646
|
-
<span class="cline-any cline-no"> </span>
|
|
647
|
-
<span class="cline-any cline-neutral"> </span>
|
|
648
|
-
<span class="cline-any cline-no"> </span>
|
|
649
|
-
<span class="cline-any cline-no"> </span>
|
|
650
|
-
<span class="cline-any cline-no"> </span>
|
|
651
|
-
<span class="cline-any cline-no"> </span>
|
|
652
|
-
<span class="cline-any cline-neutral"> </span>
|
|
653
|
-
<span class="cline-any cline-no"> </span>
|
|
654
|
-
<span class="cline-any cline-no"> </span>
|
|
655
|
-
<span class="cline-any cline-neutral"> </span>
|
|
656
|
-
<span class="cline-any cline-no"> </span>
|
|
657
|
-
<span class="cline-any cline-no"> </span>
|
|
658
|
-
<span class="cline-any cline-neutral"> </span>
|
|
659
|
-
<span class="cline-any cline-no"> </span>
|
|
660
|
-
<span class="cline-any cline-neutral"> </span>
|
|
661
|
-
<span class="cline-any cline-neutral"> </span>
|
|
662
|
-
<span class="cline-any cline-no"> </span>
|
|
663
|
-
<span class="cline-any cline-neutral"> </span>
|
|
664
|
-
<span class="cline-any cline-neutral"> </span>
|
|
665
|
-
<span class="cline-any cline-no"> </span>
|
|
666
|
-
<span class="cline-any cline-no"> </span>
|
|
667
|
-
<span class="cline-any cline-no"> </span>
|
|
668
|
-
<span class="cline-any cline-neutral"> </span>
|
|
669
|
-
<span class="cline-any cline-neutral"> </span>
|
|
670
|
-
<span class="cline-any cline-neutral"> </span>
|
|
671
|
-
<span class="cline-any cline-no"> </span>
|
|
672
|
-
<span class="cline-any cline-neutral"> </span>
|
|
673
|
-
<span class="cline-any cline-neutral"> </span>
|
|
674
|
-
<span class="cline-any cline-neutral"> </span>
|
|
675
|
-
<span class="cline-any cline-yes">1</span>
|
|
676
|
-
<span class="cline-any cline-no"> </span>
|
|
677
|
-
<span class="cline-any cline-no"> </span>
|
|
678
|
-
<span class="cline-any cline-neutral"> </span>
|
|
679
|
-
<span class="cline-any cline-neutral"> </span>
|
|
680
|
-
<span class="cline-any cline-no"> </span>
|
|
681
|
-
<span class="cline-any cline-no"> </span>
|
|
682
|
-
<span class="cline-any cline-neutral"> </span>
|
|
683
|
-
<span class="cline-any cline-no"> </span>
|
|
684
|
-
<span class="cline-any cline-no"> </span>
|
|
685
|
-
<span class="cline-any cline-no"> </span>
|
|
686
|
-
<span class="cline-any cline-no"> </span>
|
|
687
|
-
<span class="cline-any cline-neutral"> </span>
|
|
688
|
-
<span class="cline-any cline-neutral"> </span>
|
|
689
|
-
<span class="cline-any cline-neutral"> </span>
|
|
690
|
-
<span class="cline-any cline-no"> </span>
|
|
691
|
-
<span class="cline-any cline-neutral"> </span>
|
|
692
|
-
<span class="cline-any cline-neutral"> </span>
|
|
693
|
-
<span class="cline-any cline-neutral"> </span>
|
|
694
|
-
<span class="cline-any cline-neutral"> </span>
|
|
695
|
-
<span class="cline-any cline-neutral"> </span>
|
|
696
|
-
<span class="cline-any cline-neutral"> </span>
|
|
697
|
-
<span class="cline-any cline-neutral"> </span>
|
|
698
|
-
<span class="cline-any cline-neutral"> </span>
|
|
699
|
-
<span class="cline-any cline-neutral"> </span>
|
|
700
|
-
<span class="cline-any cline-yes">1</span>
|
|
701
|
-
<span class="cline-any cline-no"> </span>
|
|
702
|
-
<span class="cline-any cline-no"> </span>
|
|
703
|
-
<span class="cline-any cline-no"> </span>
|
|
704
|
-
<span class="cline-any cline-neutral"> </span>
|
|
705
|
-
<span class="cline-any cline-no"> </span>
|
|
706
|
-
<span class="cline-any cline-neutral"> </span>
|
|
707
|
-
<span class="cline-any cline-neutral"> </span>
|
|
708
|
-
<span class="cline-any cline-yes">1</span>
|
|
709
|
-
<span class="cline-any cline-yes">1</span>
|
|
710
|
-
<span class="cline-any cline-yes">1</span>
|
|
711
|
-
<span class="cline-any cline-yes">1</span>
|
|
712
|
-
<span class="cline-any cline-neutral"> </span>
|
|
713
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/*
|
|
714
|
-
Copyright (c) 2012, Alexy Maslenninkov
|
|
715
|
-
|
|
716
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
717
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
718
|
-
in the Software without restriction, including without limitation the rights
|
|
719
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
720
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
721
|
-
furnished to do so, subject to the following conditions:
|
|
722
|
-
|
|
723
|
-
The above copyright notice and this permission notice shall be included in
|
|
724
|
-
all copies or substantial portions of the Software.
|
|
725
|
-
|
|
726
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
727
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
728
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
729
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
730
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
731
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
732
|
-
THE SOFTWARE.
|
|
733
|
-
*/
|
|
734
|
-
|
|
735
|
-
/*
|
|
736
|
-
* Daitch-Mokotoff Soundex Coding
|
|
737
|
-
*
|
|
738
|
-
* The Daitch-Mokotoff Soundex System was created by Randy Daitch and Gary
|
|
739
|
-
* Mokotoff of the Jewish Genealogical Society because they concluded the system
|
|
740
|
-
* developed by Robert Russell in 1918, and in use today by the U.S. National
|
|
741
|
-
* Archives and Records Administration (NARA) does not apply well to many Slavic
|
|
742
|
-
* and Yiddish surnames. It also includes refinements that are independent of
|
|
743
|
-
* ethnic considerations.
|
|
744
|
-
*
|
|
745
|
-
* The rules for converting surnames into D-M Code numbers are listed below.
|
|
746
|
-
* They are followed by the coding chart.
|
|
747
|
-
*
|
|
748
|
-
* 1. Names are coded to six digits, each digit representing a sound listed in
|
|
749
|
-
* the coding chart (below).
|
|
750
|
-
*
|
|
751
|
-
* 2. When a name lacks enough coded sounds for six digits, use zeros to fill to
|
|
752
|
-
* six digits. GOLDEN which has only four coded sounds [G-L-D-N] is coded as
|
|
753
|
-
* 583600.
|
|
754
|
-
*
|
|
755
|
-
* 3. The letters A, E, I, O, U, J, and Y are always coded at the beginning of a
|
|
756
|
-
* name as in Alpert 087930. In any other situation, they are ignored except
|
|
757
|
-
* when two of them form a pair and the pair comes before a vowel, as in Breuer
|
|
758
|
-
* 791900 but not Freud.
|
|
759
|
-
*
|
|
760
|
-
* 4. The letter H is coded at the beginning of a name, as in Haber 579000, or
|
|
761
|
-
* preceding a vowel, as in Manheim 665600, otherwise it is not coded.
|
|
762
|
-
*
|
|
763
|
-
* 5. When adjacent sounds can combine to form a larger sound, they are given
|
|
764
|
-
* the code number of the larger sound. Mintz which is not coded MIN-T-Z but
|
|
765
|
-
* MIN-TZ 664000.
|
|
766
|
-
*
|
|
767
|
-
* 6. When adjacent letters have the same code number, they are coded as one
|
|
768
|
-
* sound, as in TOPF, which is not coded TO-P-F 377000 but TO-PF 370000.
|
|
769
|
-
* Exceptions to this rule are the letter combinations MN and NM, whose letters
|
|
770
|
-
* are coded separately, as in Kleinman, which is coded 586660 not 586600.
|
|
771
|
-
*
|
|
772
|
-
* 7. When a surname consists or more than one word, it is coded as if one word,
|
|
773
|
-
* such as Ben Aron which is treated as Benaron.
|
|
774
|
-
*
|
|
775
|
-
* 8. Several letter and letter combinations pose the problem that they may
|
|
776
|
-
* sound in one of two ways. The letter and letter combinations CH, CK, C, J,
|
|
777
|
-
* and RS are assigned two possible code numbers.
|
|
778
|
-
*
|
|
779
|
-
* For more info, see http://www.jewishgen.org/InfoFiles/soundex.html
|
|
780
|
-
*/
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* D-M transformation table in the form of finite-state machine.
|
|
784
|
-
* Every element of the table having member with zero index represents
|
|
785
|
-
* legal FSM state; every non-zero key is the transition rule.
|
|
786
|
-
*
|
|
787
|
-
* Every legal state comprises tree values chosen according to the position
|
|
788
|
-
* of the letter combination in the word:
|
|
789
|
-
* 0: start of a word;
|
|
790
|
-
* 1: before a vowel;
|
|
791
|
-
* 2: any other situation.
|
|
792
|
-
*/
|
|
793
|
-
var codes = {
|
|
794
|
-
A: {
|
|
795
|
-
0: [0, -1, -1],
|
|
796
|
-
I: [[0, 1, -1]],
|
|
797
|
-
J: [[0, 1, -1]],
|
|
798
|
-
Y: [[0, 1, -1]],
|
|
799
|
-
U: [[0, 7, -1]]},
|
|
800
|
-
B: [[7, 7, 7]],
|
|
801
|
-
C: {
|
|
802
|
-
0: [5, 5, 5],
|
|
803
|
-
Z: {0: [4, 4, 4], S: [[4, 4, 4]]},
|
|
804
|
-
S: {0: [4, 4, 4], Z: [[4, 4, 4]]},
|
|
805
|
-
K: [[5, 5, 5], [45, 45, 45]],
|
|
806
|
-
H: {0: [5, 5, 5], S: [[5, 54, 54]]}},
|
|
807
|
-
D: {
|
|
808
|
-
0: [3, 3, 3],
|
|
809
|
-
T: [[3, 3, 3]],
|
|
810
|
-
Z: {0: [4, 4, 4], H: [[4, 4, 4]], S: [[4, 4, 4]]},
|
|
811
|
-
S: {0: [4, 4, 4], H: [[4, 4, 4]], Z: [[4, 4, 4]]},
|
|
812
|
-
R: {S: [[4, 4, 4]], Z: [[4, 4, 4]]}},
|
|
813
|
-
E: {
|
|
814
|
-
0: [0, -1, -1],
|
|
815
|
-
I: [[0, 1, -1]],
|
|
816
|
-
J: [[0, 1, -1]],
|
|
817
|
-
Y: [[0, 1, -1]],
|
|
818
|
-
U: [[1, 1, -1]],
|
|
819
|
-
W: [[1, 1, -1]]},
|
|
820
|
-
F: {
|
|
821
|
-
0: [7, 7, 7],
|
|
822
|
-
B: [[7, 7, 7]]},
|
|
823
|
-
G: [[5, 5, 5]],
|
|
824
|
-
H: [[5, 5, -1]],
|
|
825
|
-
I: {
|
|
826
|
-
0: [0, -1, -1],
|
|
827
|
-
A: [[1, -1, -1]],
|
|
828
|
-
E: [[1, -1, -1]],
|
|
829
|
-
O: [[1, -1, -1]],
|
|
830
|
-
U: [[1, -1, -1]]},
|
|
831
|
-
J: [[4, 4, 4]],
|
|
832
|
-
K: {
|
|
833
|
-
0: [5, 5, 5],
|
|
834
|
-
H: [[5, 5, 5]],
|
|
835
|
-
S: [[5, 54, 54]]},
|
|
836
|
-
L: [[8, 8, 8]],
|
|
837
|
-
M: {
|
|
838
|
-
0: [6, 6, 6],
|
|
839
|
-
N: [[66, 66, 66]]},
|
|
840
|
-
N: {
|
|
841
|
-
0: [6, 6, 6],
|
|
842
|
-
M: [[66, 66, 66]]},
|
|
843
|
-
O: {
|
|
844
|
-
0: [0, -1, -1],
|
|
845
|
-
I: [[0, 1, -1]],
|
|
846
|
-
J: [[0, 1, -1]],
|
|
847
|
-
Y: [[0, 1, -1]]},
|
|
848
|
-
P: {
|
|
849
|
-
0: [7, 7, 7],
|
|
850
|
-
F: [[7, 7, 7]],
|
|
851
|
-
H: [[7, 7, 7]]},
|
|
852
|
-
Q: [[5, 5, 5]],
|
|
853
|
-
R: {
|
|
854
|
-
0: [9, 9, 9],
|
|
855
|
-
Z: [[94, 94, 94], [94, 94, 94]],
|
|
856
|
-
S: [[94, 94, 94], [94, 94, 94]]},
|
|
857
|
-
S: {
|
|
858
|
-
0: [4, 4, 4],
|
|
859
|
-
Z: {0: [4, 4, 4], T: [[2, 43, 43]], C: {Z: [[2, 4, 4]], S: [[2, 4, 4]]}, D: [[2, 43, 43]]},
|
|
860
|
-
D: [[2, 43, 43]],
|
|
861
|
-
T: {0: [2, 43, 43], R: {Z: [[2, 4, 4]], S: [[2, 4, 4]]}, C: {H: [[2, 4, 4]]}, S: {H: [[2, 4, 4]], C: {H: [[2, 4, 4]]}}},
|
|
862
|
-
C: {0: [2, 4, 4], H: {0: [4, 4, 4], T: {0: [2, 43, 43], S: {C: {H: [[2, 4, 4]]}, H: [[2, 4, 4]]}, C: {H: [[2, 4, 4]]}}, D: [[2, 43, 43]]}},
|
|
863
|
-
H: {0: [4, 4, 4], T: {0: [2, 43, 43], C: {H: [[2, 4, 4]]}, S: {H: [[2, 4, 4]]}}, C: {H: [[2, 4, 4]]}, D: [[2, 43, 43]]}},
|
|
864
|
-
T: {
|
|
865
|
-
0: [3, 3, 3],
|
|
866
|
-
C: {0: [4, 4, 4], H: [[4, 4, 4]]},
|
|
867
|
-
Z: {0: [4, 4, 4], S: [[4, 4, 4]]},
|
|
868
|
-
S: {0: [4, 4, 4], Z: [[4, 4, 4]], H: [[4, 4, 4]], C: {H: [[4, 4, 4]]}},
|
|
869
|
-
T: {S: {0: [4, 4, 4], Z: [[4, 4, 4]], C: {H: [[4, 4, 4]]}}, C: {H: [[4, 4, 4]]}, Z: [[4, 4, 4]]},
|
|
870
|
-
H: [[3, 3, 3]],
|
|
871
|
-
R: {Z: [[4, 4, 4]], S: [[4, 4, 4]]}},
|
|
872
|
-
U: {
|
|
873
|
-
0: [0, -1, -1],
|
|
874
|
-
E: [[0, -1, -1]],
|
|
875
|
-
I: [[0, 1, -1]],
|
|
876
|
-
J: [[0, 1, -1]],
|
|
877
|
-
Y: [[0, 1, -1]]},
|
|
878
|
-
V: [[7, 7, 7]],
|
|
879
|
-
W: [[7, 7, 7]],
|
|
880
|
-
X: [[5, 54, 54]],
|
|
881
|
-
Y: [[1, -1, -1]],
|
|
882
|
-
Z: {
|
|
883
|
-
0: [4, 4, 4],
|
|
884
|
-
D: {0: [2, 43, 43], Z: {0: [2, 4, 4], H: [[2, 4, 4]]}},
|
|
885
|
-
H: {0: [4, 4, 4], D: {0: [2, 43, 43], Z: {H: [[2, 4, 4]]}}},
|
|
886
|
-
S: {0: [4, 4, 4], H: [[4, 4, 4]], C: {H: [[4, 4, 4]]}}}
|
|
887
|
-
};
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
<span class="fstat-no" title="function not covered" >function process(word, codeLength) {</span>
|
|
891
|
-
<span class="cstat-no" title="statement not covered" > codeLength = codeLength || 6;</span>
|
|
892
|
-
<span class="cstat-no" title="statement not covered" > word = word.toUpperCase();</span>
|
|
893
|
-
<span class="cstat-no" title="statement not covered" > var output = '';</span>
|
|
894
|
-
|
|
895
|
-
<span class="cstat-no" title="statement not covered" > var pos = 0, lastCode = -1;</span>
|
|
896
|
-
<span class="cstat-no" title="statement not covered" > while (pos < word.length) {</span>
|
|
897
|
-
<span class="cstat-no" title="statement not covered" > var substr = word.slice(pos);</span>
|
|
898
|
-
<span class="cstat-no" title="statement not covered" > var rules = findRules(substr);</span>
|
|
899
|
-
|
|
900
|
-
<span class="cstat-no" title="statement not covered" > var code;</span>
|
|
901
|
-
<span class="cstat-no" title="statement not covered" > if (pos == 0) {</span>
|
|
902
|
-
// at the beginning of the word
|
|
903
|
-
<span class="cstat-no" title="statement not covered" > code = rules.mapping[0];</span>
|
|
904
|
-
} else <span class="cstat-no" title="statement not covered" >if (substr[rules.length] && findRules(substr[rules.length]).mapping[0] == 0) {</span>
|
|
905
|
-
// before a vowel
|
|
906
|
-
<span class="cstat-no" title="statement not covered" > code = rules.mapping[1];</span>
|
|
907
|
-
} else {
|
|
908
|
-
// any other situation
|
|
909
|
-
<span class="cstat-no" title="statement not covered" > code = rules.mapping[2];</span>
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
<span class="cstat-no" title="statement not covered" > if ((code != -1) && (code != lastCode)) <span class="cstat-no" title="statement not covered" >output += code;</span></span>
|
|
913
|
-
<span class="cstat-no" title="statement not covered" > lastCode = code;</span>
|
|
914
|
-
<span class="cstat-no" title="statement not covered" > pos += rules.length;</span>
|
|
915
|
-
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
<span class="cstat-no" title="statement not covered" > return normalizeLength(output, codeLength);</span>
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
<span class="fstat-no" title="function not covered" >function findRules(str) {</span>
|
|
923
|
-
<span class="cstat-no" title="statement not covered" > var state = codes[str[0]];</span>
|
|
924
|
-
<span class="cstat-no" title="statement not covered" > var legalState = state || [[-1,-1,-1]],</span>
|
|
925
|
-
charsInvolved = 1;
|
|
926
|
-
|
|
927
|
-
<span class="cstat-no" title="statement not covered" > for (var offs = 1; offs < str.length; offs++) {</span>
|
|
928
|
-
<span class="cstat-no" title="statement not covered" > if (!state || !state[str[offs]]) <span class="cstat-no" title="statement not covered" >break;</span></span>
|
|
929
|
-
|
|
930
|
-
<span class="cstat-no" title="statement not covered" > state = state[str[offs]];</span>
|
|
931
|
-
<span class="cstat-no" title="statement not covered" > if (state[0]) {</span>
|
|
932
|
-
<span class="cstat-no" title="statement not covered" > legalState = state;</span>
|
|
933
|
-
<span class="cstat-no" title="statement not covered" > charsInvolved = offs + 1;</span>
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
938
|
-
length: charsInvolved,
|
|
939
|
-
mapping: legalState[0]
|
|
940
|
-
};
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* Pad right with zeroes or cut excess symbols to fit length
|
|
946
|
-
*/
|
|
947
|
-
<span class="fstat-no" title="function not covered" >function normalizeLength(token, length) {</span>
|
|
948
|
-
<span class="cstat-no" title="statement not covered" > length = length || 6;</span>
|
|
949
|
-
<span class="cstat-no" title="statement not covered" > if (token.length < length) {</span>
|
|
950
|
-
<span class="cstat-no" title="statement not covered" > token += (new Array(length - token.length + 1)).join('0');</span>
|
|
951
|
-
}
|
|
952
|
-
<span class="cstat-no" title="statement not covered" > return token.slice(0, length);</span>
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
var Phonetic = require('./phonetic');
|
|
956
|
-
var soundex = new Phonetic();
|
|
957
|
-
soundex.process = process;
|
|
958
|
-
module.exports = soundex;
|
|
959
|
-
|
|
960
|
-
</pre></td></tr>
|
|
961
|
-
</table></pre>
|
|
962
|
-
|
|
963
|
-
</div>
|
|
964
|
-
<div class="footer">
|
|
965
|
-
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Dec 22 2014 18:17:21 GMT-0500 (EST)</div>
|
|
966
|
-
</div>
|
|
967
|
-
|
|
968
|
-
<script src="../../../prettify.js"></script>
|
|
969
|
-
|
|
970
|
-
<script src="https://yui-s.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
|
|
971
|
-
<script>
|
|
972
|
-
|
|
973
|
-
YUI().use('datatable', function (Y) {
|
|
974
|
-
|
|
975
|
-
var formatters = {
|
|
976
|
-
pct: function (o) {
|
|
977
|
-
o.className += o.record.get('classes')[o.column.key];
|
|
978
|
-
try {
|
|
979
|
-
return o.value.toFixed(2) + '%';
|
|
980
|
-
} catch (ex) { return o.value + '%'; }
|
|
981
|
-
},
|
|
982
|
-
html: function (o) {
|
|
983
|
-
o.className += o.record.get('classes')[o.column.key];
|
|
984
|
-
return o.record.get(o.column.key + '_html');
|
|
985
|
-
}
|
|
986
|
-
},
|
|
987
|
-
defaultFormatter = function (o) {
|
|
988
|
-
o.className += o.record.get('classes')[o.column.key];
|
|
989
|
-
return o.value;
|
|
990
|
-
};
|
|
991
|
-
|
|
992
|
-
function getColumns(theadNode) {
|
|
993
|
-
var colNodes = theadNode.all('tr th'),
|
|
994
|
-
cols = [],
|
|
995
|
-
col;
|
|
996
|
-
colNodes.each(function (colNode) {
|
|
997
|
-
col = {
|
|
998
|
-
key: colNode.getAttribute('data-col'),
|
|
999
|
-
label: colNode.get('innerHTML') || ' ',
|
|
1000
|
-
sortable: !colNode.getAttribute('data-nosort'),
|
|
1001
|
-
className: colNode.getAttribute('class'),
|
|
1002
|
-
type: colNode.getAttribute('data-type'),
|
|
1003
|
-
allowHTML: colNode.getAttribute('data-html') === 'true' || colNode.getAttribute('data-fmt') === 'html'
|
|
1004
|
-
};
|
|
1005
|
-
col.formatter = formatters[colNode.getAttribute('data-fmt')] || defaultFormatter;
|
|
1006
|
-
cols.push(col);
|
|
1007
|
-
});
|
|
1008
|
-
return cols;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
function getRowData(trNode, cols) {
|
|
1012
|
-
var tdNodes = trNode.all('td'),
|
|
1013
|
-
i,
|
|
1014
|
-
row = { classes: {} },
|
|
1015
|
-
node,
|
|
1016
|
-
name;
|
|
1017
|
-
for (i = 0; i < cols.length; i += 1) {
|
|
1018
|
-
name = cols[i].key;
|
|
1019
|
-
node = tdNodes.item(i);
|
|
1020
|
-
row[name] = node.getAttribute('data-value') || node.get('innerHTML');
|
|
1021
|
-
row[name + '_html'] = node.get('innerHTML');
|
|
1022
|
-
row.classes[name] = node.getAttribute('class');
|
|
1023
|
-
//Y.log('Name: ' + name + '; Value: ' + row[name]);
|
|
1024
|
-
if (cols[i].type === 'number') { row[name] = row[name] * 1; }
|
|
1025
|
-
}
|
|
1026
|
-
//Y.log(row);
|
|
1027
|
-
return row;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
function getData(tbodyNode, cols) {
|
|
1031
|
-
var data = [];
|
|
1032
|
-
tbodyNode.all('tr').each(function (trNode) {
|
|
1033
|
-
data.push(getRowData(trNode, cols));
|
|
1034
|
-
});
|
|
1035
|
-
return data;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
function replaceTable(node) {
|
|
1039
|
-
if (!node) { return; }
|
|
1040
|
-
var cols = getColumns(node.one('thead')),
|
|
1041
|
-
data = getData(node.one('tbody'), cols),
|
|
1042
|
-
table,
|
|
1043
|
-
parent = node.get('parentNode');
|
|
1044
|
-
|
|
1045
|
-
table = new Y.DataTable({
|
|
1046
|
-
columns: cols,
|
|
1047
|
-
data: data,
|
|
1048
|
-
sortBy: 'file'
|
|
1049
|
-
});
|
|
1050
|
-
parent.set('innerHTML', '');
|
|
1051
|
-
table.render(parent);
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
Y.on('domready', function () {
|
|
1055
|
-
replaceTable(Y.one('div.coverage-summary table'));
|
|
1056
|
-
if (typeof prettyPrint === 'function') {
|
|
1057
|
-
prettyPrint();
|
|
1058
|
-
}
|
|
1059
|
-
});
|
|
1060
|
-
});
|
|
1061
|
-
</script>
|
|
1062
|
-
</body>
|
|
1063
|
-
</html>
|