Skip to content

Commit

Permalink
Adding Tagalog stopword list (Filipino)
Browse files Browse the repository at this point in the history
Also some contribution metioning
  • Loading branch information
eklem committed Jul 27, 2021
1 parent 9907b76 commit 77e357f
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 676 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ var text = sw.removeStopwords(text[, stopwords])
### <language code>
Arrays of stopwords for the following 54 languages are supplied:
Arrays of stopwords for the following 55 languages are supplied:
* `af` - Afrikaans
* `ar` - Arabic, Modern Standard
Expand Down Expand Up @@ -146,6 +146,7 @@ Arrays of stopwords for the following 54 languages are supplied:
* `sw` - Swahili
* `sv` - Swedish
* `th` - Thai
* `tl` - Tagalog (Filipino)
* `tr` - Turkish
* `vi` - Vietnamese
* `yo` - Yoruba
Expand All @@ -163,6 +164,8 @@ norwegianStopwords = sw.no
## Your language missing?
If you can't find a stopword file for your language, you can try creating one with [`stopword-trainer`](https://github.com/eklem/stopword-trainer). We're happy to help you in the process.
## Contributions
Most of this work is from other projects and people, and wouldn't be possible without them. Thanks to among others the [stopwords-iso](https://github.com/stopwords-iso) project and the [more-stoplist](https://github.com/dohliam/more-stoplists) project. We'll add a more complete contribution overview later. Thanks for all your input, issues and PRs!
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE
Expand Down
2 changes: 1 addition & 1 deletion dist/stopword.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/stopword.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/stopword.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var defaultStopwords = require('./stopwords_en.js').words
const defaultStopwords = require('./stopwords_en.js').words

exports.removeStopwords = function (tokens, stopwords) {
stopwords = stopwords || defaultStopwords
Expand Down Expand Up @@ -61,6 +61,7 @@ exports.st = require('./stopwords_st.js').words
exports.sv = require('./stopwords_sv.js').words
exports.sw = require('./stopwords_sw.js').words
exports.th = require('./stopwords_th.js').words
exports.tl = require('./stopwords_tl.js').words
exports.tr = require('./stopwords_tr.js').words
exports.vi = require('./stopwords_vi.js').words
exports.yo = require('./stopwords_yo.js').words
Expand Down
25 changes: 25 additions & 0 deletions lib/stopwords_tl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* The MIT License (MIT)
Copyright (c) 2016 Gene Diaz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. */

const words = ['akin', 'aking', 'ako', 'alin', 'am', 'amin', 'aming', 'ang', 'ano', 'anumang', 'apat', 'at', 'atin', 'ating', 'ay', 'bababa', 'bago', 'bakit', 'bawat', 'bilang', 'dahil', 'dalawa', 'dapat', 'din', 'dito', 'doon', 'gagawin', 'gayunman', 'ginagawa', 'ginawa', 'ginawang', 'gumawa', 'gusto', 'habang', 'hanggang', 'hindi', 'huwag', 'iba', 'ibaba', 'ibabaw', 'ibig', 'ikaw', 'ilagay', 'ilalim', 'ilan', 'inyong', 'isa', 'isang', 'itaas', 'ito', 'iyo', 'iyon', 'iyong', 'ka', 'kahit', 'kailangan', 'kailanman', 'kami', 'kanila', 'kanilang', 'kanino', 'kanya', 'kanyang', 'kapag', 'kapwa', 'karamihan', 'katiyakan', 'katulad', 'kaya', 'kaysa', 'ko', 'kong', 'kulang', 'kumuha', 'kung', 'laban', 'lahat', 'lamang', 'likod', 'lima', 'maaari', 'maaaring', 'maging', 'mahusay', 'makita', 'marami', 'marapat', 'masyado', 'may', 'mayroon', 'mga', 'minsan', 'mismo', 'mula', 'muli', 'na', 'nabanggit', 'naging', 'nagkaroon', 'nais', 'nakita', 'namin', 'napaka', 'narito', 'nasaan', 'ng', 'ngayon', 'ni', 'nila', 'nilang', 'nito', 'niya', 'niyang', 'noon', 'o', 'pa', 'paano', 'pababa', 'paggawa', 'pagitan', 'pagkakaroon', 'pagkatapos', 'palabas', 'pamamagitan', 'panahon', 'pangalawa', 'para', 'paraan', 'pareho', 'pataas', 'pero', 'pumunta', 'pumupunta', 'sa', 'saan', 'sabi', 'sabihin', 'sarili', 'sila', 'sino', 'siya', 'tatlo', 'tayo', 'tulad', 'tungkol', 'una', 'walang']

exports.words = words
Loading

0 comments on commit 77e357f

Please sign in to comment.