common-words-bg
Collection of common Bulgarian words which doesn't bring meaning to classification algorithms
Install
npm install common-words-bg --save
Usage
const commonBG = ; const sentense = 'Недоумявам защо дамата прие с такова подозрение моя подарък.';const sentenseWords = sentense;const filteredWords = sentenseWords; // 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