• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using a Soundex category...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a Soundex category...


  • Subject: Re: Using a Soundex category...
  • From: Lars Sonchocky-Helldorf <email@hidden>
  • Date: Wed, 06 Jul 2011 20:41:58 +0200

Am 06.07.2011 um 20:23 schrieb Eric E. Dolecki:

> I found a Soundex NSString category here:
>
> http://www.cocoadev.com/index.pl?NSStringSoundex
>
> However, when I tried it out I get strange results...
>
> //someString is set to different strings each time tested
> BOOL test = [someString soundsLikeString:@"Face"];
> NSLog(@"sounds like Face: %d",test);
>
> Place = 0
> Ace = 0
> Mace = 0
> Fake = 1
> Testing = 0
> Brake = 0
>
> It would seem something is off to get negatives on Place, Ace & Mace.
>
> Any ideas or perhaps a different Soundex implementation I could try? I
> am already using Levenstein distance, but on it's own it's not good
> enough.

You should be aware that the whole soundex algorithm is a rough hack that only works for the english language. If you want to localize your app forget about soundex, it is absolutely not working for let's say french or german.


cheers,

	Lars_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Using a Soundex category... (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: Using a Soundex category...
  • Next by Date: Re: Using a Soundex category...
  • Previous by thread: Re: Using a Soundex category...
  • Next by thread: Re: Using a Soundex category...
  • Index(es):
    • Date
    • Thread