<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 5: Jaro returns score 0.0 for resembling strings</title><link>https://sourceforge.net/p/secondstring/bugs/5/</link><description>Recent changes to 5: Jaro returns score 0.0 for resembling strings</description><atom:link href="https://sourceforge.net/p/secondstring/bugs/5/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 09 Dec 2015 12:33:16 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/secondstring/bugs/5/feed.rss" rel="self" type="application/rss+xml"/><item><title>#5 Jaro returns score 0.0 for resembling strings</title><link>https://sourceforge.net/p/secondstring/bugs/5/?limit=25#7032</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Monroy</dc:creator><pubDate>Wed, 09 Dec 2015 12:33:16 -0000</pubDate><guid>https://sourceforge.netba06e8ba9f271ffc77e94a83aa5333c4754a69eb</guid></item><item><title>Jaro returns score 0.0 for resembling strings</title><link>https://sourceforge.net/p/secondstring/bugs/5/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 05 Feb 2010 12:29:43 -0000</pubDate><guid>https://sourceforge.net022ddd17d81d2e6ef3962abd6d7bb894be9bdcd4</guid></item></channel></rss>