avendesora / pythonbible

A python library for validating, parsing, normalizing scripture references and retrieving scripture texts (for open source and public domain versions)
https://docs.python.bible
MIT License
56 stars 11 forks source link

Number of Chapters in Psalms #177

Open forrestberry opened 3 weeks ago

forrestberry commented 3 weeks ago

It seems there is some issue with the number of chapters in Psalms.

import pythonbible as pb

chapt = pb.count_chapters('Psalms')
verses = pb.count_verses('Psalms 151')

print(chapt)   # outputs 152
print(verses)  # outputs 9

Both of these are wrong. Even if you include the apocryphal psalm 151 from the LXX, you would only get 151. The number of verses in psalm 151 should be 7.

Do you have documentation on how you handle differences between the different Biblical traditions around apocrypha?

Related, I am interested in using this library with the original languages. I have been learning text fabric. It has been great. But one of the issues is converting versification from English to Hebrew. (They differ a fair amount in places.) I have written a script to handle it. Is that something you would be interested in folding into this project?