A program to segment Qurʾān translation text.
go install git.sr.ht/~rehandaphedar/jumlize/v3@latestFrom the Quranic Universal Library (QUL) (or from any other source with the same schema) obtain the following:
- Ayah Metadata (
quran-metadata-ayah.json). - A translation (
-simple.json).
The program comes with 3 subcommands:
segmentcheckclear
For each subcommand, you can get documentation for flags by running:
jumlize [subcommand] -h
Run:
jumlize segment -api_key "[GEMINI_API_KEY]"The command will add a segments field to all verses in the file.
Run:
jumlize checkThe command will sanity check the segments and print a list of verse keys with invalid segments.
Run:
jumlize clearThe command will remove the segments field from all verses in the file.
Segmented translations can be found under results/.