common-words-bg
所属分类:聚类算法
开发工具:JavaScript
文件大小:38KB
下载次数:0
上传日期:2018-04-11 22:57:47
上 传 者:
sh-1993
说明: 对分类算法没有意义的保加利亚通用词集合
(Collection of common Bulgarian words which doesn t bring meaning to classification algorithms)
文件列表:
.travis.yml (37, 2018-04-12)
index.js (24646, 2018-04-12)
license (1118, 2018-04-12)
package-lock.json (119096, 2018-04-12)
package.json (805, 2018-04-12)
src (0, 2018-04-12)
src\build.js (399, 2018-04-12)
src\words.js (31327, 2018-04-12)
test.js (922, 2018-04-12)
# common-words-bg [![Build Status](https://travis-ci.org/tsvetomirnik/common-words-bg.svg?branch=master)](https://travis-ci.org/tsvetomirnik/common-words-bg)
Collection of common Bulgarian words which doesn't bring meaning to classification algorithms
## Install
```
npm install common-words-bg --save
```
## Usage
```js
const commonBG = require('common-words-bg');
const sentense = 'Недоумявам защо дамата прие с такова подозрение моя подарък.';
const sentenseWords = sentense.split(' ');
const filteredWords = sentenseWords.filter(word => !commonBG.isCommon(word));
// sentenseWords: [ 'Недоумявам', 'защо', 'дамата', 'прие', 'с', 'такова', 'подозрение', 'моя', 'подарък.' ]
// filteredWords: [ 'Недоумявам', 'дамата', 'прие', 'подозрение', 'подарък.' ]
```
**Result:** Недоумявам ~~защо~~ дамата прие ~~с такова~~ подозрение ~~моя~~ подарък.
## API
| Name | Type | Description |
|------------|------------------------|------------------------------------------------|
| words | string[] | Array of all common words |
| isCommon() | (str: string): boolean | Checks wheather a word is common |
## Words
Contains the following grammatical types of words:
- Particles
- Adverbs
- Conjunctions
- Interjections
- Pronouns
- Prepositions
- Auxiliary verbs
- Polite words
- Numerical words
- Numerical adjectives
## Grammatical terminology
- `Verb` - Глагол
- `Auxiliary verb` - Спомагателен глагол
- `Pronoun` - Местоимение
- `Particle` - Частица
- `Adverb` - Наречие
- `Preposition` - Предлог
- `Conjunction` - Съюз
- `Interjection` - Междуметие
## License
[MIT](./license)
近期下载者:
相关文件:
收藏者: