1.2.0 • Published 8 years ago
common-words-bg v1.2.0
common-words-bg 
Collection of common Bulgarian words which doesn't bring meaning to classification algorithms
Install
npm install common-words-bg --saveUsage
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:
- Adverbs
- Conjunctions
- Pronouns
- Prepositions
- Auxiliary verbs
- Polite words
Grammatical terminology
Глагол- VerbСпомагателен глагол- Auxiliary verbМестоимение- PronounНаречие- AdverbПредлог- PrepositionСъюз- ConjunctionМеждуметие- Interjection