<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 1: Jaro metric uses halflength of the longer string</title><link href="https://sourceforge.net/p/secondstring/bugs/1/" rel="alternate"/><link href="https://sourceforge.net/p/secondstring/bugs/1/feed.atom" rel="self"/><id>https://sourceforge.net/p/secondstring/bugs/1/</id><updated>2004-04-14T08:29:34Z</updated><subtitle>Recent changes to 1: Jaro metric uses halflength of the longer string</subtitle><entry><title>Jaro metric uses halflength of the longer string</title><link href="https://sourceforge.net/p/secondstring/bugs/1/" rel="alternate"/><published>2004-04-14T08:29:34Z</published><updated>2004-04-14T08:29:34Z</updated><author><name>David Necas</name><uri>https://sourceforge.net/u/yeti-dn/</uri></author><id>https://sourceforge.netc6a148d53632f60ec235f2010c107218f3f5610f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here's a patch:&lt;/p&gt;
&lt;p&gt;--- Jaro.java.orig      2004-04-14 10:21:34.000000000 +0200&lt;br /&gt;
+++ Jaro.java   2004-04-14 10:21:26.000000000 +0200&lt;br /&gt;
@@ -51,7 +51,7 @@&lt;/p&gt;
&lt;p&gt;private int halfLengthOfShorter(String&lt;br /&gt;
str1,String str2)&lt;br /&gt;
{&lt;br /&gt;
-               return (str1.length() &amp;gt; str2.length())&lt;br /&gt;
? str1.length()/2 + 1 : str2.length()/2 + 1;&lt;br /&gt;
+               return (str1.length() &amp;lt; str2.length())&lt;br /&gt;
? str1.length()/2 + 1 : str2.length()/2 + 1;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;private String commonChars(String s,String&lt;br /&gt;
t,int halflen) &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>