/new-hope

Esperanto tokenizer

Primary LanguageTypeScriptMIT LicenseMIT

new-hope logo

Esperanto tokenizer written in TypeScript

npm version StackShare


Esperanto?

Esperanto is a constructed language created by L. L. Zamenhof in 1887. Find out more here and check out the great Duolingo Esperanto Course.


Usage

ES6/TypeScript style import
import {split, tokenize} from "new-hope";

const words = split("Mi parolas Esperanton.");
const tokens = tokenize(words);
Node.js style import
const newHope = require("new-hope");

const words = newHope.split("Mi parolas Esperanton.");
const tokens = newHope.tokenize(words);
AMD style import
require(["new-hope"], (newHope) => {
  const words = newHope.split("Mi parolas Esperanton.");
  const tokens = newHope.tokenize(words);
});