0.0.3 • Published 5 years ago

sweet-cream v0.0.3

Weekly downloads
8
License
ISC
Repository
github
Last release
5 years ago

sweet-cream

This package serves as a general-purpose text normalizer. It allows users to configure a normalizer that they can then use to normalize text in several ways (lexical vs numerical numbers, casing, apostrophes, etc).

Installation

npm install sweet-cream

Usage

TypeScript

import { Normalizer } from "sweet-cream";

let normalizer = new Normalizer({
  numbering: "lexical",
  casing: "lower",
  expandApostropheWords: true,
  removePunctuation: true
})

console.log(normalizer.normalize("I'll have 1 hen and 2 ducks!")); // => i will have one hen and two ducks
0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

6 years ago

0.0.0

6 years ago