Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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, getSentences } 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 = getSentences(text);
const textWithoutPunctuation = removePunctuation(text);