Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend support #65

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions data/stopwords/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
var stopwords = {
ar: require('./stopwords-ar.json'),
bg: require('./stopwords-bg.json'),
cs: require('./stopwords-cs.json'),
da: require('./stopwords-da.json'),
de: require('./stopwords-de.json'),
en: require('./stopwords-en.json'),
es: require('./stopwords-es.json'),
fi: require('./stopwords-fi.json'),
fr: require('./stopwords-fr.json'),
hu: require('./stopwords-hu.json'),
id: require('./stopwords-id.json'),
it: require('./stopwords-it.json'),
ko: require('./stopwords-ko.json'),
nb: require('./stopwords-nb.json'),
nl: require('./stopwords-nl.json'),
no: require('./stopwords-no.json'),
pl: require('./stopwords-pl.json'),
pt: require('./stopwords-pt.json'),
ru: require('./stopwords-ru.json'),
sv: require('./stopwords-sv.json'),
th: require('./stopwords-th.json'),
tr: require('./stopwords-tr.json'),
zh: require('./stopwords-zh.json')
}

module.exports = function(language) {
var sw;

if (stopwords.hasOwnProperty(language)) {
sw = stopwords[language]
} else {
console.error("WARNING: No stopwords found for '" + language + "' - defaulting to English!")
sw = stopwords.en
}

return sw
}
164 changes: 164 additions & 0 deletions data/stopwords/stopwords-ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
[
"\ufeffفى\r",
"في\r",
"كل\r",
"لم\r",
"لن\r",
"له\r",
"من\r",
"هو\r",
"هي\r",
"قوة\r",
"كما\r",
"لها\r",
"منذ\r",
"وقد\r",
"ولا\r",
"نفسه\r",
"لقاء\r",
"مقابل\r",
"هناك\r",
"وقال\r",
"وكان\r",
"نهاية\r",
"وقالت\r",
"وكانت\r",
"للامم\r",
"فيه\r",
"كلم\r",
"لكن\r",
"وفي\r",
"وقف\r",
"ولم\r",
"ومن\r",
"وهو\r",
"وهي\r",
"يوم\r",
"فيها\r",
"منها\r",
"مليار\r",
"لوكالة\r",
"يكون\r",
"يمكن\r",
"مليون\r",
"حيث\r",
"اكد\r",
"الا\r",
"اما\r",
"امس\r",
"السابق\r",
"التى\r",
"التي\r",
"اكثر\r",
"ايار\r",
"ايضا\r",
"ثلاثة\r",
"الذاتي\r",
"الاخيرة\r",
"الثاني\r",
"الثانية\r",
"الذى\r",
"الذي\r",
"الان\r",
"امام\r",
"ايام\r",
"خلال\r",
"حوالى\r",
"الذين\r",
"الاول\r",
"الاولى\r",
"بين\r",
"ذلك\r",
"دون\r",
"حول\r",
"حين\r",
"الف\r",
"الى\r",
"انه\r",
"اول\r",
"ضمن\r",
"انها\r",
"جميع\r",
"الماضي\r",
"الوقت\r",
"المقبل\r",
"اليوم\r",
"ـ\r",
"ف\r",
"و\r",
"و6\r",
"قد\r",
"لا\r",
"ما\r",
"مع\r",
"مساء\r",
"هذا\r",
"واحد\r",
"واضاف\r",
"واضافت\r",
"فان\r",
"قبل\r",
"قال\r",
"كان\r",
"لدى\r",
"نحو\r",
"هذه\r",
"وان\r",
"واكد\r",
"كانت\r",
"واوضح\r",
"مايو\r",
"ب\r",
"ا\r",
"أ\r",
"،\r",
"عشر\r",
"عدد\r",
"عدة\r",
"عشرة\r",
"عدم\r",
"عام\r",
"عاما\r",
"عن\r",
"عند\r",
"عندما\r",
"على\r",
"عليه\r",
"عليها\r",
"زيارة\r",
"سنة\r",
"سنوات\r",
"تم\r",
"ضد\r",
"بعد\r",
"بعض\r",
"اعادة\r",
"اعلنت\r",
"بسبب\r",
"حتى\r",
"اذا\r",
"احد\r",
"اثر\r",
"برس\r",
"باسم\r",
"غدا\r",
"شخصا\r",
"صباح\r",
"اطار\r",
"اربعة\r",
"اخرى\r",
"بان\r",
"اجل\r",
"غير\r",
"بشكل\r",
"حاليا\r",
"بن\r",
"به\r",
"ثم\r",
"اف\r",
"ان\r",
"او\r",
"اي\r",
"بها\r",
"صفر"
]
162 changes: 0 additions & 162 deletions data/stopwords/stopwords-ar.txt

This file was deleted.

Loading