On one hand, I have an alphabetically sorted noun vocabulary (#7000)
aardvark
abacus
abbey
abbreviation
abdomen
ability
abnormal
On the other hand I have a set of words (#1E6)
['Hello', 'airport', 'really', 'sorry', 'to', 'hear', 'this'...]
What is the most efficient way to find out if a word is present in the vocabulary, and the index?
I could simply use lists/arrays and compare strings, but this does not take advantage of the alphabetic sorting of the vocabulary