greek-utils-wikt
v0.1.1
Published
Utilities for Modern and Polytonic Greek ported from Wiktionary modules
Downloads
24
Maintainers
Readme
Wiktionary Greek Utilities
This 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.
Installation
This project was originally created using Deno, and transformed to an npm package using dnt.
Deno
import {
data,
tokenize,
tr,
/* ... */
} from 'https://deno.land/x/greek_utils_wikt/mod.ts';
or directly from files:
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';
/* ... */
Node
npm install --save greek-utils-wikt
# or with pnpm
pnpm add greek-utils-wikt
# or with yarn
yarn add greek-utils-wikt
then import it: (you can also use ESM)
const wikt = require('greek-utils-wikt');
Docs
You can find the docs for this package in the deno module page.