<div dir="ltr">Hello<div><br></div><div style>I have an issue with the normalizing which is supposed to fallback to English as I understand it. Unfortunately, when I give Romans from a Russian Locale, I'm getting an IllegalArgument exception, because it's resolving to Tobias, which isn't in the KJV system</div>
<div style><br></div><div style>Here are my values when entering BookName#match(String normalizedName).</div><div style><br></div><div style><div>longName<span class="" style="white-space:pre">        </span>"" (id=302)<span class="" style="white-space:pre">        </span></div>
<div>normalizedLongName<span class="" style="white-space:pre">        </span>"" (id=302)<span class="" style="white-space:pre">        </span></div><div>normalizedShortName<span class="" style="white-space:pre">        </span>"" (id=302)<span class="" style="white-space:pre">        </span></div>
<div>shortName<span class="" style="white-space:pre">        </span>"" (id=302)<span class="" style="white-space:pre">        </span></div><div>normalizedName<span class="" style="white-space:pre">        </span>"romans" (id=298)<span class="" style="white-space:pre">        </span></div>
<div><br></div><div><br></div><div style>As you can see the issue is with the line:</div><div style><br></div><div style><div> if (normalizedShortName.startsWith(normalizedName) || normalizedName.startsWith(normalizedShortName)) {</div>
<div> return true;</div><div> }</div><div style>which then matches the second part.</div><div style><br></div><div style>The reason for this is that Tobias is a blank field in the BibleNames. As a result, we fall in and match it.</div>
<div style><br></div><div style>My suggested fix to this, would be to start by removing all blank Bible names from the language files. Alternatively, which would be less work, we could check that the normalized names are not blank!</div>
<div style><br></div><div style>Chris</div><div style><br></div><div style><br></div></div></div></div>