New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alignmentapi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alignmentapi

An API to align words from a source language sentence to other words from a target language sentence. It generates a JSON.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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); // "Παῦλος" : "Paul"
aligner.addAlignment(1, 1); // "δοῦλος" : "a"
aligner.addAlignment(1, 2); // "δοῦλος" : "a", "servant"
aligner.addAlignment(1, 3); // "δοῦλος" : "a", "servant", "of"
aligner.removeAlignment(1, 3); // "δοῦλος" : "a", "servant"
aligner.addAlignment(2, 3); // "Θεοῦ" : "of"
aligner.addAlignment(2, 4); // "Θεοῦ" : "of", "God"

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

Keywords

FAQs

Package last updated on 29 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc