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
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>
import syllabify from 'koine-lexer/lib/syllabify'
const syllables = syllabify('ἀκηκόαμεν');
["ἀ","κη","κό","α","μεν"]
import accentuation from 'koine-lexer/lib/accentuation'
const accentedVerb = accentuation.accentuateVerb('ἀκηκοαμεν');
"ἀκηκόαμεν"
import amalgamate from 'koine-lexer/lib/amalgamate'
const amalgamatedVerb = amalgamate('πέμπσω');
"πέμψω"
Released under MIT License.