Skip to content

Tool to copy strongs from one theWord Bible module to another

Notifications You must be signed in to change notification settings

rubiot/theword-addstrongs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

theword-addstrongs

This is a Raku command-line tool to copy strongs/morphology tags from one theWord Bible module to another based on similar words.

Usage:

./theword-addstrongs.p6 --file=<BibleModule> --borrow-from=<BibleModule> [--start-from=<Int>] [--debug] [--ibiblia=<Str>] [--max-levenshtein=<Int>] [--min-levenshtein=<Int>] [--synonyms-file=<Str>] [--strongs-association]

  • --file theWord Bible module you want to add strongs to
  • --borrow-from theWord Bible module you want to copy strongs from
  • --start-fromuse this to start from a line other than the first one (for debug purposes)
  • --debug print lots of debug information
  • --ibiblia if provided, an iBiblia project will be created with this name
  • --max-levenshtein maximum Levenshtein distance allowed to associate two different words. Defaults to 1. Increase it if you want to loose the association rules.
  • --min-levenshtein minimum size for a word to apply Levenstein distance association. Defaults to 3.
  • --strongs-association do association by comparing Strong's tags associated with the words, instead of comparing the words themselves. Useful to generate iBiblia projects.

Module dependencies

The following Raku modules are necessary to run the script:

  • Terminal::ANSIColor;
  • Text::Levenshtein;
  • DBIish;
  • Data::Dump.

Known issues/limitations

  • Bible modules must be in UTF-8 format;
  • There can be no puctuation between a word and its Strong's/morphology tags (for instance, <wt>word <WG1>). Move them to after the tags (for the previous example, it should be instead <wt>word<WG1> );
  • Verse rules are not taken into account. If this is a problem, apply them manually before running the script;

Preview

This preview shows the script running in debug mode, in which it shows every step of the association process. image

About

Tool to copy strongs from one theWord Bible module to another

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages