Skip to content

Parses the text of the King James Bible and exports words, count data, etc. to csv files

License

Notifications You must be signed in to change notification settings

tsmorton60/KJVData2CSV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KJVData2CSV

This Python utility will read and parse the included KJV text and export certain data to csv files.

Requirements

Python 3.7+

Usage

Simply place both the av1769.htm and extract2csv.py file in a folder and run the .py file. Two csv files will be generated, one with word level data and the other with verse level data. These files can be opened in any spreadsheet program such as Excel or Libre Office.

Modification

The word data csv output includes each KJV word plus verse reference, word index, number of characters, running total of characters, vowels, and English gematria (based on 6). The verse data csv output includes each verse reference plus number of words, characters, vowels, and gematria.

This script is a basis for a new Python user to modify and output other textual data such as punctuation, capital letters, syllables per word, phrases per verse, word index in chapter, etc.

Other Bible Texts

Any Bible text can be used as long as it is one verse per line with a tab seprarating the verse reference from the text. Texts with added data such as Strong's Numbers can be used if the extract2csv.py code is modified to deal with extra the data.

Notes

Hyphenated words are considered one word but the hyphen is not counted as a character.

About

Parses the text of the King James Bible and exports words, count data, etc. to csv files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published