The Phoneme-Hammer.
Pure JS implementation of English dictionary-based phonemization.
import { phonemize } from 'glamdring'
console.log(phonemize('This, Gandalf, was Glamdring, Foe-hammer that the king of Gondolin once wore.'))To install dependencies:
bun installTo run:
bun run index.tsThis project was created using bun init in bun v1.3.9. Bun is a fast all-in-one JavaScript runtime.