koine-lexer
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.