common-words-bg

1.2.0 • Public • Published

common-words-bg Build Status

Collection of common Bulgarian words which doesn't bring meaning to classification algorithms

Install

npm install common-words-bg --save

Usage

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

License

MIT

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i common-words-bg

    Weekly Downloads

    3

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • tsvetomirnik