<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 5: Jaro returns score 0.0 for resembling strings</title><link href="https://sourceforge.net/p/secondstring/bugs/5/" rel="alternate"/><link href="https://sourceforge.net/p/secondstring/bugs/5/feed.atom" rel="self"/><id>https://sourceforge.net/p/secondstring/bugs/5/</id><updated>2015-12-09T12:33:16.483000Z</updated><subtitle>Recent changes to 5: Jaro returns score 0.0 for resembling strings</subtitle><entry><title>#5 Jaro returns score 0.0 for resembling strings</title><link href="https://sourceforge.net/p/secondstring/bugs/5/?limit=25#7032" rel="alternate"/><published>2015-12-09T12:33:16.483000Z</published><updated>2015-12-09T12:33:16.483000Z</updated><author><name>Alexis Monroy</name><uri>https://sourceforge.net/u/alexisml/</uri></author><id>https://sourceforge.netba06e8ba9f271ffc77e94a83aa5333c4754a69eb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This is caused by a glitch in the source code of Jaro class. At function commonChars, the line:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;for (int j=Math.max(0,i-halflen); !foundIt &amp;amp;&amp;amp; j&amp;lt;Math.min(i+halflen,t.length()); j++) {
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;...is wrong. It should be:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;for (int j=Math.max(0,i-halflen); !foundIt &amp;amp;&amp;amp; j&amp;lt;Math.min(i+halflen**+1**,t.length()); j++) {
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Jaro returns score 0.0 for resembling strings</title><link href="https://sourceforge.net/p/secondstring/bugs/5/" rel="alternate"/><published>2010-02-05T12:29:43Z</published><updated>2010-02-05T12:29:43Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net022ddd17d81d2e6ef3962abd6d7bb894be9bdcd4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I give jaro the strings 'ihdienstdatuni' and 'indienstdatum' the returned score = 0.0, although there are only 3 differences.&lt;br /&gt;
When I append a space after 'indienstdatum' and leave the other string the same, the resulting score is 0.74. When I append a space to both strings, the score goes up to 0.78.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>