1.0.0 • Published 9 months ago
@lunarisapp/language v1.0.0
Lunaris Language
A utility library for core linguistic breakdown: vowels, consonants, words, and sentences.
!TIP See also:
- @lunarisapp/stats for text statistics (e.g. word count, sentence count, etc.).
- @lunarisapp/readability for text readability scores (e.g. Flesch Reading Ease).
Features
- Browser & Node.js support
- Multi-language support
- TypeScript support
Installation
npm install @lunarisapp/languageUsage
import { type Language, vowels, consonants, removePunctuation, getWords, getSenteces } from '@lunarisapp/language';
const lang: Language = 'en_US';
const enVowels = vowels[lang];
const enConsonants = consonants[lang];
const text = 'Hello, world!';
const words = getWords(text);
const sentences = getSenteces(text);
const textWithoutPunctuation = removePunctuation(text);1.0.0
9 months ago