stopword
Version:
A module for node.js and the browser that takes in text and returns text that is stripped of stopwords. Has pre-defined stopword lists for 62 languages and also takes lists with custom stopwords as input.
72 lines (66 loc) • 1.19 kB
JavaScript
/* Copyright 2016 Liam Doherty
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* This list is frequency sorted. That means it can be sliced from the bottom
and be less agressive in excluding stopwords */
const lgg = [
'́',
'̀',
'nɨ',
'mà',
'rɨ',
'dɨ',
'ɨ',
'́nɨ',
'èrɨ',
'́á\'',
'sɨ',
'àzɨ',
'yɨ',
'rá',
'vɨ',
'nga',
'be',
'mɨ',
'à',
'dà',
'kʉ',
'bá',
' ́lé',
'má',
'e',
'yo',
'̀yɨ',
'ma',
'kɨ',
'àlʉ',
'́mà',
'rʉ́',
'drɨ',
'patí',
'a',
'è',
'yó',
'te',
'̀á',
'mà',
'mâ',
'dálé',
'yí',
'̌',
'pɨ',
'e\'yó',
'ndráa',
'bo',
'di',
'drìá'
]
export { lgg }