Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 1.82 KB

README.md

File metadata and controls

77 lines (53 loc) · 1.82 KB

koine-lexer

License Library minified size Library minified + gzipped size

Installation

This library is published in the NPM registry and can be installed using any compatible package manager.

npm install koine-lexer --save

# For Yarn, use the command below.
yarn add koine-lexer

Installation from CDN

This module has an UMD bundle available through JSDelivr and Unpkg CDNs.

<!-- For UNPKG use the code below. -->
<script src="https://unpkg.com/koine-lexer"></script>

<!-- For JSDelivr use the code below. -->
<script src="https://cdn.jsdelivr.net/npm/koine-lexer"></script>

<script>
  // UMD module is exposed through the "koineLexer" global variable.
  console.log(koineLexer);
</script>

Usage

Syllabification

import syllabify from 'koine-lexer/lib/syllabify'
const syllables = syllabify('ἀκηκόαμεν');
["","κη","κό","α","μεν"]

Accentuation

import accentuation from 'koine-lexer/lib/accentuation'
const accentedVerb = accentuation.accentuateVerb('ἀκηκοαμεν');
"ἀκηκόαμεν"

Amalgamation

import amalgamate from 'koine-lexer/lib/amalgamate'
const amalgamatedVerb = amalgamate('πέμπσω');
"πέμψω"

License

Released under MIT License.

See also