
Security News
Socket Security Analysis Is Now One Click Away on npm
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.
felig-toolkit
Advanced tools
A toolset for Amharic Language pre-processing 🔧
It is a toolset for Amharic Language pre-processing. It includes an Amharic Stemmer, Amharic Transliterator, Amharic Stopword remover and Amharic Lexical analyzer.
Breaks down Amharic language corpus and returns tokens by removing any whitespace, expanding abbreviations(አ.አ -> አዲስ አበበ), removing numbers, breaking up hyphenated words, and removing punctuation (፡ ። ! ? ...).
Removes commonly occuring words that have no contribution to the semantics of the corpus. Eg: እና ፡ ስለዚህ ፡ በመሆኑም...
Changes Unicode Amharic characters to ASCII. Exmaple: ልጆች -> ልጅኦች -> ljoc. This tool implements two types of Amharic transliteration lookup tables.
SERA (System for Ethiopic Representation in ASCII) - This system maps alphabets with similar sounds separately. Eg: (ሀ፣ሐ፡ኀ)፣(ሰ፡ሠ)፡(ጸ፡ፀ)፡(ዐ፡አ). However, in practice, these alphabets are used interchangeably and use of SERA would greatly decrease recall. NOT RECOMMENDED!
Felig - Normalizes the redundant symbols into a common symbol. RECOMMENDED!
Reduces the different morphological (e.g. inflectional or derivational) variations of Amharic word forms by taking an Amharic word and returning the stem through affix-removal with longest match.
Exmaple:
ልጆች -> ልጅኦች -> ljoc -> lj -> ልጅ
Felig Toolkit is available as a package on NPM for use in a Node application:
# NPM
npm install felig-toolkit
note: this package uses es-modules
import felig_toolkit from 'felig-toolkit'
transliterate.felig_transliterate(word,lang): takes a single word and its' language (am/en) and returns felig-transliterated string
transliterate.sera_transliterate(word,lang): takes a single word and its' language (am/en) and returns SERA-transliterated string
removeStopwords(corpus): takes an Amharic corpus text (sentence/paragraph/multiple-paragraphs) and removes stop wprds
lexAnalyze(): takes an Amharic corpus text returns a string of tokens
stem(word): takes an Amharic word string and returns the stem as a string (async)
felig-toolkit is open to contributions, but it is recommend to create an issue or reply in a comment to let others know what you are working on first.
node index.js on the root directoryTo prepare the following tools, these academic papers were used
FAQs
Amharic Language Pre-processor toolkit
The npm package felig-toolkit receives a total of 27 weekly downloads. As such, felig-toolkit popularity was classified as not popular.
We found that felig-toolkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.