<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&#39;m getting an IllegalArgument exception, because it&#39;s resolving to Tobias, which isn&#39;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>&quot;&quot; (id=302)<span class="" style="white-space:pre">        </span></div>
<div>normalizedLongName<span class="" style="white-space:pre">        </span>&quot;&quot; (id=302)<span class="" style="white-space:pre">        </span></div><div>normalizedShortName<span class="" style="white-space:pre">        </span>&quot;&quot; (id=302)<span class="" style="white-space:pre">        </span></div>
<div>shortName<span class="" style="white-space:pre">        </span>&quot;&quot; (id=302)<span class="" style="white-space:pre">        </span></div><div>normalizedName<span class="" style="white-space:pre">        </span>&quot;romans&quot; (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>