How to use the @nlpjs/core.Among function in @nlpjs/core

To help you get started, we’ve selected a few @nlpjs/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github axa-group / nlp.js / packages / lang-es / src / stemmer-es.js View on Github external
new Among('se', -1, -1),
  new Among('lo', -1, -1),
  new Among('selo', 5, -1),
  new Among('las', -1, -1),
  new Among('selas', 7, -1),
  new Among('les', -1, -1),
  new Among('los', -1, -1),
  new Among('selos', 10, -1),
  new Among('nos', -1, -1)
];

StemmerEs.a_2 = [
  new Among('ando', -1, 6),
  new Among('iendo', -1, 6),
  new Among('yendo', -1, 7),
  new Among('ar', -1, 6),
  new Among('er', -1, 6),
  new Among('ir', -1, 6)
];

StemmerEs.a_3 = [
  new Among('ic', -1, -1),
  new Among('ad', -1, -1),
  new Among('os', -1, -1),
  new Among('iv', -1, 1)
];

StemmerEs.a_4 = [
  new Among('able', -1, 1),
  new Among('ible', -1, 1),
  new Among('ante', -1, 1)
];
github axa-group / nlp.js / packages / lang-ca / src / stemmer-ca.js View on Github external
new Among('acions', 145, 2),
  new Among('esos', -1, 1),
  new Among('osos', -1, 1),
  new Among('assos', -1, 1),
  new Among('issos', -1, 1),
  new Among('ers', -1, 1),
  new Among('ors', -1, 1),
  new Among('dors', 152, 1),
  new Among('adors', 153, 1),
  new Among('idors', 153, 1),
  new Among('ats', -1, 1),
  new Among('itats', 156, 1),
  new Among('bilitats', 157, 1),
  new Among('ivitats', 157, 1),
  new Among('ativitats', 159, 1),
  new Among('\u00EFtats', 156, 1),
  new Among('ets', -1, 1),
  new Among('ants', -1, 1),
  new Among('ents', -1, 1),
  new Among('ments', 164, 1),
  new Among('aments', 165, 1),
  new Among('ots', -1, 1),
  new Among('uts', -1, 1),
  new Among('ius', -1, 1),
  new Among('trius', 169, 1),
  new Among('atius', 169, 1),
  new Among('\u00E8s', -1, 1),
  new Among('\u00E9s', -1, 1),
  new Among('\u00EDs', -1, 1),
  new Among('d\u00EDs', 174, 1),
  new Among('\u00F3s', -1, 1),
  new Among('itat', -1, 1),
github axa-group / nlp.js / packages / lang-ar / src / stemmer-ar.js View on Github external
StemmerAr.a_0 = [
  new Among("!", -1, 3),
  new Among("'", -1, 3),
  new Among("%", -1, 3),
  new Among("*", -1, 3),
  new Among(",", -1, 3),
  new Among(".", -1, 3),
  new Among("/", -1, 3),
  new Among(":", -1, 3),
  new Among(";", -1, 3),
  new Among("?", -1, 3),
  new Among("\\", -1, 3),
  new Among("\u060C", -1, 4),
  new Among("\u061B", -1, 4),
  new Among("\u061F", -1, 4),
  new Among("\u0640", -1, 2),
  new Among("\u064B", -1, 1),
  new Among("\u064C", -1, 1),
  new Among("\u064D", -1, 1),
  new Among("\u064E", -1, 1),
  new Among("\u064F", -1, 1),
  new Among("\u0650", -1, 1),
  new Among("\u0651", -1, 1),
  new Among("\u0652", -1, 1),
  new Among("\u0660", -1, 5),
  new Among("\u0661", -1, 6),
  new Among("\u0662", -1, 7),
  new Among("\u0663", -1, 8),
  new Among("\u0664", -1, 9),
  new Among("\u0665", -1, 10),
  new Among("\u0666", -1, 11),
  new Among("\u0667", -1, 12),
github axa-group / nlp.js / packages / lang-hu / src / stemmer-hu.js View on Github external
new Among('k\u00E9nt', 29, -1),
  new Among('ank\u00E9nt', 32, -1),
  new Among('enk\u00E9nt', 32, -1),
  new Among('onk\u00E9nt', 32, -1),
  new Among('ot', 29, -1),
  new Among('\u00E9rt', 29, -1),
  new Among('\u00F6t', 29, -1),
  new Among('hez', -1, -1),
  new Among('hoz', -1, -1),
  new Among('h\u00F6z', -1, -1),
  new Among('v\u00E1', -1, -1),
  new Among('v\u00E9', -1, -1)
];

StemmerHu.a_5 = [
  new Among('\u00E1n', -1, 2),
  new Among('\u00E9n', -1, 1),
  new Among('\u00E1nk\u00E9nt', -1, 3)
];

StemmerHu.a_6 = [
  new Among('stul', -1, 2),
  new Among('astul', 0, 1),
  new Among('\u00E1stul', 0, 3),
  new Among('st\u00FCl', -1, 2),
  new Among('est\u00FCl', 3, 1),
  new Among('\u00E9st\u00FCl', 3, 4)
];

StemmerHu.a_7 = [new Among('\u00E1', -1, 1), new Among('\u00E9', -1, 2)];

StemmerHu.a_8 = [
github axa-group / nlp.js / packages / lang-en-min / src / stemmer-en.js View on Github external
new Among('ative', -1, 6),
  new Among('alize', -1, 3),
  new Among('iciti', -1, 4),
  new Among('ical', -1, 4),
  new Among('tional', -1, 1),
  new Among('ational', 5, 2),
  new Among('ful', -1, 5),
  new Among('ness', -1, 5)
];

StemmerEn.a_7 = [
  new Among('ic', -1, 1),
  new Among('ance', -1, 1),
  new Among('ence', -1, 1),
  new Among('able', -1, 1),
  new Among('ible', -1, 1),
  new Among('ate', -1, 1),
  new Among('ive', -1, 1),
  new Among('ize', -1, 1),
  new Among('iti', -1, 1),
  new Among('al', -1, 1),
  new Among('ism', -1, 1),
  new Among('ion', -1, 2),
  new Among('er', -1, 1),
  new Among('ous', -1, 1),
  new Among('ant', -1, 1),
  new Among('ent', -1, 1),
  new Among('ment', 15, 1),
  new Among('ement', 16, 1)
];

StemmerEn.a_8 = [new Among('e', -1, 1), new Among('l', -1, 2)];
github axa-group / nlp.js / packages / lang-nl / src / stemmer-nl.js View on Github external
new Among('kk', -1, -1),
  new Among('tt', -1, -1)
];

StemmerNl.a_3 = [
  new Among('ene', -1, 2),
  new Among('se', -1, 3),
  new Among('en', -1, 2),
  new Among('heden', 2, 1),
  new Among('s', -1, 3)
];

StemmerNl.a_4 = [
  new Among('end', -1, 1),
  new Among('ig', -1, 2),
  new Among('ing', -1, 1),
  new Among('lijk', -1, 3),
  new Among('baar', -1, 4),
  new Among('bar', -1, 5)
];

StemmerNl.a_5 = [
  new Among('aa', -1, -1),
  new Among('ee', -1, -1),
  new Among('oo', -1, -1),
  new Among('uu', -1, -1)
];

StemmerNl.g_v = [17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128];

StemmerNl.g_v_I = [
  1,
github axa-group / nlp.js / packages / lang-ca / src / stemmer-ca.js View on Github external
new Among('icte', -1, 1),
  new Among('iste', -1, 1),
  new Among('ici', -1, 1),
  new Among('\u00EDci', -1, 1),
  new Among('logi', -1, 3),
  new Among('ari', -1, 1),
  new Among('tori', -1, 1),
  new Among('al', -1, 1),
  new Among('il', -1, 1),
  new Among('all', -1, 1),
  new Among('ell', -1, 1),
  new Among('\u00EDvol', -1, 1),
  new Among('isam', -1, 1),
  new Among('issem', -1, 1),
  new Among('\u00ECssem', -1, 1),
  new Among('\u00EDssem', -1, 1),
  new Among('\u00EDssim', -1, 1),
  new Among('qu\u00EDssim', 73, 5),
  new Among('amen', -1, 1),
  new Among('\u00ECssin', -1, 1),
  new Among('ar', -1, 1),
  new Among('ificar', 77, 1),
  new Among('egar', 77, 1),
  new Among('ejar', 77, 1),
  new Among('itar', 77, 1),
  new Among('itzar', 77, 1),
  new Among('fer', -1, 1),
  new Among('or', -1, 1),
  new Among('dor', 84, 1),
  new Among('dur', -1, 1),
  new Among('doras', -1, 1),
  new Among('ics', -1, 4),
github axa-group / nlp.js / packages / lang-eu / src / stemmer-eu.js View on Github external
new Among('kor', 271, 1),
  new Among('os', -1, 1),
  new Among('ket', -1, 1),
  new Among('du', -1, 1),
  new Among('mendu', 275, 1),
  new Among('ordu', 275, 1),
  new Among('leku', -1, 1),
  new Among('buru', -1, 2),
  new Among('duru', -1, 1),
  new Among('tsu', -1, 1),
  new Among('tu', -1, 1),
  new Among('tatu', 282, 4),
  new Among('mentu', 282, 1),
  new Among('estu', 282, 1),
  new Among('txu', -1, 1),
  new Among('zu', -1, 1),
  new Among('tzu', 287, 1),
  new Among('gintzu', 288, 1),
  new Among('z', -1, 1),
  new Among('ez', 290, 1),
  new Among('eroz', 290, 1),
  new Among('tz', 290, 1),
  new Among('koitz', 293, 1)
];

StemmerEu.a_2 = [
  new Among('zlea', -1, 2),
  new Among('keria', -1, 1),
  new Among('la', -1, 1),
  new Among('era', -1, 1),
  new Among('dade', -1, 1),
  new Among('tade', -1, 1),
github axa-group / nlp.js / packages / lang-ar / src / stemmer-ar.js View on Github external
new Among("\uFEAE", -1, 32),
  new Among("\uFEAF", -1, 33),
  new Among("\uFEB0", -1, 33),
  new Among("\uFEB1", -1, 34),
  new Among("\uFEB2", -1, 34),
  new Among("\uFEB3", -1, 34),
  new Among("\uFEB4", -1, 34),
  new Among("\uFEB5", -1, 35),
  new Among("\uFEB6", -1, 35),
  new Among("\uFEB7", -1, 35),
  new Among("\uFEB8", -1, 35),
  new Among("\uFEB9", -1, 36),
  new Among("\uFEBA", -1, 36),
  new Among("\uFEBB", -1, 36),
  new Among("\uFEBC", -1, 36),
  new Among("\uFEBD", -1, 37),
  new Among("\uFEBE", -1, 37),
  new Among("\uFEBF", -1, 37),
  new Among("\uFEC0", -1, 37),
  new Among("\uFEC1", -1, 38),
  new Among("\uFEC2", -1, 38),
  new Among("\uFEC3", -1, 38),
  new Among("\uFEC4", -1, 38),
  new Among("\uFEC5", -1, 39),
  new Among("\uFEC6", -1, 39),
  new Among("\uFEC7", -1, 39),
  new Among("\uFEC8", -1, 39),
  new Among("\uFEC9", -1, 40),
  new Among("\uFECA", -1, 40),
  new Among("\uFECB", -1, 40),
  new Among("\uFECC", -1, 40),
  new Among("\uFECD", -1, 41),
github axa-group / nlp.js / packages / lang-ca / src / stemmer-ca.js View on Github external
new Among('\u00FC', 0, 10),
];

StemmerCa.a_1 = [
  new Among('la', -1, 1),
  new Among('-la', 0, 1),
  new Among('sela', 0, 1),
  new Among('le', -1, 1),
  new Among('me', -1, 1),
  new Among('-me', 4, 1),
  new Among('se', -1, 1),
  new Among('-te', -1, 1),
  new Among('hi', -1, 1),
  new Among("'hi", 8, 1),
  new Among('li', -1, 1),
  new Among('-li', 10, 1),
  new Among("'l", -1, 1),
  new Among("'m", -1, 1),
  new Among('-m', -1, 1),
  new Among("'n", -1, 1),
  new Among('-n', -1, 1),
  new Among('ho', -1, 1),
  new Among("'ho", 17, 1),
  new Among('lo', -1, 1),
  new Among('selo', 19, 1),
  new Among("'s", -1, 1),
  new Among('las', -1, 1),
  new Among('selas', 22, 1),
  new Among('les', -1, 1),
  new Among('-les', 24, 1),
  new Among("'ls", -1, 1),
  new Among('-ls', -1, 1),

@nlpjs/core

Core

MIT
Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis

Similar packages