greek-utils-wikt
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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.

Package Sidebar

Install

npm i greek-utils-wikt

Weekly Downloads

10

Version

0.1.1

License

GPL-3.0-or-later

Unpacked Size

85.8 kB

Total Files

23

Last publish

Collaborators

  • ernestoittig