Skip to content

Lex

readonly static distance: (a, b) => number = LexCore.distance

Parameter Type
a string | number[]
b string | number[]

number


readonly static inventory: string[] = LexCore.inventory


readonly static langs: readonly ["fr", "en", "es", "pt", "it", "ca", "ro"] = LexCore.langs

phonemize(text, lang): Promise<Omit<Pronunciation, "ids">[]>

Parameter Type
text string
lang "fr" | "en" | "es" | "pt" | "it" | "ca" | "ro"

Promise<Omit<Pronunciation, "ids">[]>

phonemize(texts, lang): Promise<Omit<Pronunciation, "ids">[][]>

Parameter Type
texts string[]
lang "fr" | "en" | "es" | "pt" | "it" | "ca" | "ro"

Promise<Omit<Pronunciation, "ids">[][]>


static create(): Promise<Lex>

Promise<Lex>