[sword-devel] how to get strongs numbers from KJV2003 module?

DM Smith dmsmith555 at yahoo.com
Tue Oct 25 13:44:14 MST 2005

See below:

John Walther wrote:

> On Mon, Oct 24, 2005 at 02:55:52PM -0700, Troy A. Griffitts wrote:
>>     Your output is incorrect for the KJV module in OSIS format.
> Thanks Troy.  Here is the output I get for Genesis1:1
> <w lemma="strong:H07225">In the beginning</w> <w 
> lemma="strong:H0430">God</w> <w lemma="strongMorph:TH8804" 
> morph="x-StrongsMorph:TH8804">created</w> <w lemma="strong:H08064">the 
> heaven</w> <w lemma="strong:H0853">and</w> <w lemma="strong:H0776">the 
> earth</w>.
> This looks manageable, except I don't know if strongMorph:TH8804 is
> equivalent to strong:H8804 or not; if not, how do I go from strongMorph
> to the strong's number?

You can't. TH8804 is a reference to a Thayer's number, not a strong's 

> Now, for Revelation 22:21, this is the output:
> <w lemma="robinson:T-GSM" morph="x-Robinson:T-GSM" src="3"></w>
> <w lemma="robinson:T-NSF" morph="x-Robinson:T-NSF" src="1"></w>
> <w lemma="robinson:N-NSF" morph="x-Robinson:N-NSF" src="2">The 
> grace</w> <w lemma="robinson:P-1GP" morph="x-Robinson:P-1GP" 
> src="5">of our</w> <w lemma="robinson:N-GSM" morph="x-Robinson:N-GSM" 
> src="4">Lord</w> <w lemma="robinson:N-GSM" morph="x-Robinson:N-GSM" 
> src="6">Jesus</w> <w lemma="robinson:N-GSM" morph="x-Robinson:N-GSM" 
> src="7">Christ</w>
> be <w lemma="robinson:PREP" morph="x-Robinson:PREP" src="8">with</w> 
> <w lemma="robinson:P-2GP" morph="x-Robinson:P-2GP" src="10">you</w> <w 
> lemma="robinson:A-GPM" morph="x-Robinson:A-GPM" src="9">all.</w> <w 
> lemma="robinson:HEB" morph="x-Robinson:HEB" src="11">Amen.</w>
> I have no idea how to take that output and programmatically convert it
> into a strong's number.  It looks like some of the Greek words that have
> strong's numbers don't even have representative English words.

None of these are strongs numbers. These are all Robinsons morphology.

> I do really like the fact that "added in" words aren't surrounded by <w>
> tags; I plan to mark these words in italics and give readers an option
> to not have the words show up at all.
> To be honest, although strong's numbers are nice, what I really need is
> an index into an array of Hebrew and Greek words that are spelled
> equivalently to how they are in their original language.

Take a look at Strong's Hebrew and Strong's Greek modules. These are 
indexed by the strong's number. Use the G or H to determine which module 
to use. Then take the number that follows, add enough leading 0 to make 
it 5 digits and use that to look up the word in the correct module.

However, the modules contain a transliteration. And the words that are 
transliterated are not marked as such in the module. In order to 
accomplish this you will need to create/update the module with the 
missing tags and original Greek and Hebrew.

> Part of my project is I want to do some research into what happens with
> strong's numbers when you strip off the vowel points from Hebrew and
> treat all strong's numbers with the same resulting spelling as being one
> word.

> John

More information about the sword-devel mailing list