1.0.0 • Published 9 months ago

@lunarisapp/language v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Lunaris Language

NPM Version NPM Downloads CI Status

A utility library for core linguistic breakdown: vowels, consonants, words, and sentences.

!TIP See also:

Features

  • Browser & Node.js support
  • Multi-language support
  • TypeScript support

Installation

npm install @lunarisapp/language

Usage

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);