<div class="gmail_quote">On Wed, Apr 11, 2012 at 9:19 PM, Mark Morgan Lloyd <span dir="ltr"><<a href="mailto:markMLl.fpc-pascal@telemetry.co.uk">markMLl.fpc-pascal@telemetry.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I know that there are algorithms which given a text fragment will find the "best fit" from a number of candidates, based on how many substrings have to be deleted or changed.<br>
<br>
Is there anything like this in the standard FPC library, and if not does anybody have one or a URL?<br>
<br>
Application is a configuration file handler, where parameters describe things like keyboard layout, and I want to include some latitude so that a user doesn't have to get it exactly right if editing by hand.<span class="HOEnZb"><font color="#888888"></font></span><br>
</blockquote></div><br>Maybe you mean something like Soundex:<br> <a href="http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/soundex.html">http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/soundex.html</a><br><br>I myself would make a GUI for the configuration file and give all valid choices in comboboxes and radiogroups etc.<br>
<br>Juha<br><br>