Hmmm...even in a 3.9-7067 fresh image, I get a Syntax error when trying to load from Monticello:<br><br>testProcessCxNothing more expected ->_1<br> dmsc inputKey: 'abcdefg'.<br> self should: [ dmsc inputKey = 'ABCDEFG' ].<br>
<br> self should: [ dmsc primaryTranslation = '' ].<br> self should: [ dmsc secondaryTranslation = '' ].<br> self should: [ dmsc skipCount = 0 ].<br> dmsc currentIndex: 3.<br><br> dmsc processC.<br>
<br> self should: [ dmsc primaryTranslation = 'K' ].<br> self should: [ dmsc secondaryTranslation = 'K' ].<br> self should: [ dmsc skipCount = 0 ]<br><br>Rob<br><br><div class="gmail_quote">On Fri, Jan 16, 2009 at 11:37 AM, Ron Teitelbaum <span dir="ltr"><<a href="mailto:Ron@usmedrec.com">Ron@usmedrec.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Ian,<br>
<br>
This is from WikiPedia: <a href="http://en.wikipedia.org/wiki/Double_Metaphone" target="_blank">http://en.wikipedia.org/wiki/Double_Metaphone</a><br>
<br>
Use the Double Metaphone if you are interested in other languages.<br>
<br>
The Double Metaphone search algorithm is a phonetic algorithm written by<br>
Lawrence Philips and is the second generation of his Metaphone algorithm.<br>
Its implementation was described in the June 2000 issue of C/C++ Users<br>
Journal.<br>
<br>
It is called "Double" because it can return both a primary and a secondary<br>
code for a string; this accounts for some ambiguous cases as well as for<br>
multiple variants of surnames with common ancestry. For example, encoding<br>
the name "Smith" yields a primary code of SM0 and a secondary code of XMT,<br>
while the name "Schmidt" yields a primary code of XMT and a secondary code<br>
of SMT--both have XMT in common.<br>
<br>
Double Metaphone tries to account for myriad irregularities in English of<br>
Slavic, Germanic, Celtic, Greek, French, Italian, Spanish, Chinese, and<br>
other origin. Thus it uses a much more complex ruleset for coding than its<br>
predecessor; for example, it tests for approximately 100 different contexts<br>
of the use of the letter C alone. In the introduction to his original<br>
journal article, Mr. Philips defended this complexity.<br>
<br>
Hope that helps!<br>
<font color="#888888"><br>
Ron Teitelbaum<br>
</font><div><div></div><div class="Wj3C7c"><br>
> -----Original Message-----<br>
> From: Ian Trudel [mailto:<a href="mailto:ian.trudel@gmail.com">ian.trudel@gmail.com</a>]<br>
> Sent: Friday, January 16, 2009 11:29 AM<br>
> To: <a href="mailto:Ron@usmedrec.com">Ron@usmedrec.com</a>; The general-purpose Squeak developers list<br>
> Subject: Re: [squeak-dev] SoundsLike package released on SqueakSource<br>
><br>
> Sounds great, Ron! Has SoundsLike only English phonetics or it is<br>
> possible to define and use phonetics from other languages? Let's say,<br>
> multilingual. :)<br>
><br>
> Ian<br>
><br>
> 2009/1/16 Ron Teitelbaum <<a href="mailto:Ron@usmedrec.com">Ron@usmedrec.com</a>>:<br>
> > Hello all,<br>
> ><br>
> ><br>
> ><br>
> > I have released a new package on SqueakSource that contains SoundEx and<br>
> > DoubleMetaphone.<br>
> ><br>
> ><br>
> ><br>
> > <a href="http://www.squeaksource.com/SoundsLike.html" target="_blank">http://www.squeaksource.com/SoundsLike.html</a><br>
> ><br>
> ><br>
> ><br>
> > This package adds soundsLike: to string<br>
> ><br>
> ><br>
> ><br>
> > 'titlebalm' soundsLike: 'teitelbaum'<br>
> ><br>
> ><br>
> ><br>
> > You can also get the phenoticStringsFor: a word to store in a database<br>
> for<br>
> > later queries.<br>
> ><br>
> ><br>
> ><br>
> > PhoneticStringComparator defaultClass "SoundEx" new phoneticStringsFor:<br>
> > 'titlebalm' #('T341')<br>
> ><br>
> ><br>
> ><br>
> > DoubleMetaphoneStringComparator new phoneticStringsFor: 'teitelbaum'<br>
> > #('TTLPM' 'TTLPM')<br>
> ><br>
> ><br>
> ><br>
> > Let me know if you have any questions.<br>
> ><br>
> ><br>
> ><br>
> > Regards,<br>
> ><br>
> ><br>
> ><br>
> > Ron Teitelbaum<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > ________________________________<br>
> ><br>
> > From: <a href="mailto:beginners-bounces@lists.squeakfoundation.org">beginners-bounces@lists.squeakfoundation.org</a><br>
> > [mailto:<a href="mailto:beginners-bounces@lists.squeakfoundation.org">beginners-bounces@lists.squeakfoundation.org</a>] On Behalf Of Rob<br>
> > Rothwell<br>
> > Sent: Friday, January 16, 2009 6:35 AM<br>
> > To: <a href="mailto:Ron@usmedrec.com">Ron@usmedrec.com</a><br>
> > Cc: A friendly place to get answers to even the most basic<br>
> > questionsaboutSqueak.<br>
> > Subject: Re: [Newbies] SoundEx algorithm<br>
> ><br>
> ><br>
> ><br>
> > No rush...I am working on a custom recipe program for my wife and wanted<br>
> to<br>
> > use it to search ingredients and still find something that was<br>
> misspelled!<br>
> ><br>
> > Thanks,<br>
> ><br>
> > Rob<br>
> ><br>
> > On Thu, Jan 15, 2009 at 10:10 PM, Ron Teitelbaum <<a href="mailto:Ron@usmedrec.com">Ron@usmedrec.com</a>><br>
> wrote:<br>
> ><br>
> > I did one but didn't release it anywhere. I did metaphone and double<br>
> > metaphone.<br>
> ><br>
> ><br>
> ><br>
> > Maybe I can dig it up. When did you need it?<br>
> ><br>
> ><br>
> ><br>
> > Ron Teitelbaum<br>
> ><br>
> ><br>
> ><br>
> > ________________________________<br>
> ><br>
> > From: <a href="mailto:beginners-bounces@lists.squeakfoundation.org">beginners-bounces@lists.squeakfoundation.org</a><br>
> > [mailto:<a href="mailto:beginners-bounces@lists.squeakfoundation.org">beginners-bounces@lists.squeakfoundation.org</a>] On Behalf Of Rob<br>
> > Rothwell<br>
> > Sent: Monday, January 12, 2009 4:39 PM<br>
> > To: Beginners Sqeak<br>
> > Subject: [Newbies] SoundEx algorithm<br>
> ><br>
> ><br>
> ><br>
> > Does anyone know of a SoundEx algorithm in Squeak before I go write one<br>
> > myself?<br>
> ><br>
> > Never hurts to ask!<br>
> ><br>
> > Rob<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
<br>
<br>
</div></div></blockquote></div><br>