ALIGNMENTAPI
QUICK START
const aligner = new Aligner({
sourceUsfm:null,
targetUsfm:null,
verbose:false
});
aligner.setCurrentChapter(1);
aligner.setCurrentVerse(1);
aligner.setCurrentSourceSentence("Παῦλος, δοῦλος Θεοῦ, ἀπόστολος δὲ Ἰησοῦ Χριστοῦ, κατὰ πίστιν ἐκλεκτῶν Θεοῦ, καὶ ἐπίγνωσιν ἀληθείας, τῆς κατ’ εὐσέβειαν");
aligner.setCurrentTargetSentence("Paul, a servant of God and an apostle of Jesus Christ for the faith of the chosen people of God and the knowledge of the truth that agrees with godliness,");
aligner.addAlignment(0, 0);
aligner.addAlignment(1, 1);
aligner.addAlignment(1, 2);
aligner.addAlignment(1, 3);
aligner.removeAlignment(1, 3);
aligner.addAlignment(2, 3);
aligner.addAlignment(2, 4);
TO BE DONE
- handling a source usfm and a target usfm as an input
- being able to choose a verse/sentence in the given usfms
- enhance the output JSON (having lemmas and other informations could be great)
- using
PipelineHandler
from proskomma-json-tools
to output a final aligned usfm from the JSON informations