Utilities for Modern and Polytonic Greek ported from Wiktionary modules
npm install greek-utils-wiktThis is a Typescript library of utilities for Modern and Ancient Greek ported
from MediaWiki Modules from Wiktionary originally written in Lua.
It includes functions to transliterate both Polytonic and Modern Greek into the
Latin alphabet, and functions to normalize combining diacritics, among others.
Maybe in the future I will also port the code for pronunciation and inflections.
This project was originally created using Deno, and
transformed to an npm package using dnt.
``ts`
import {
data,
tokenize,
tr,
/ ... /
} from 'https://deno.land/x/greek_utils_wikt/mod.ts';
or directly from files:
`ts`
import tr from 'https://deno.land/x/greek_utils_wikt/src/transliterate.ts';
import { tokenize } from 'https://deno.land/x/greek_utils_wikt/src/utilities.ts';
import data from 'https://deno.land/x/greek_utils_wikt/src/data.ts';
/ ... /
`sh`
npm install --save greek-utils-wiktor with pnpm
pnpm add greek-utils-wiktor with yarn
yarn add greek-utils-wikt
then import it: (you can also use ESM)
`js``
const wikt = require('greek-utils-wikt');
You can find the docs for this package in the
deno module page.