@ashiteam/ashisinhalawords-ts-lib
v0.1.40
Published
A map of Sinhala words.
Readme
AshiSinhalaWords TS Library
A minimal, efficient TypeScript/JavaScript library providing a comprehensive map and utilities for Sinhala words, including Singlish-to-Sinhala transliteration support.
Features
- Fast lookup and retrieval of Sinhala words
- Singlish-to-Sinhala mapping
- Utility to get all unique Sinhala words
- Lightweight and tree-shakable
Installation
npm install @ashiteam/ashisinhalawords-ts-libUsage
import { getAllSinhalaWords } from '@ashiteam/ashisinhalawords-ts-lib';
const words = getAllSinhalaWords();
console.log(words); // ["සිංහල", ...]import { getWordInSinhalaScript } from '@ashiteam/ashisinhalawords-ts-lib';
const singlishWord = 'gedara';
const sinhalaWord = getWordInSinhalaScript(singlishWord);
console.log(sinhalaWord); // 'ගෙදර'API
getAllSinhalaWords()
Returns an array of all unique Sinhala words in the library.
License
MIT
