• 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: "Eric E. Dolecki" <email@hidden>
  • Date: Wed, 06 Jul 2011 14:41:49 -0400

Thanks for the feedback. I now see how this works.

I am using the Nuance iOS SDK to verbally search an iPhone's music
library and play music based on what the user asked for (with and
without keywords). The Levenstein stuff sometimes works, now going to
add this to see if it can fill in some of the holes.

I tried this which worked

NSString *z = [NSString stringWithFormat:@"#%@",stringValue];
BOOL test = [z soundsLikeString:@"#Face"];
NSLog(@"sounds like \"Face\": %d", test);
//Pace = 1

Not including the 1st character might be okay. With some testing I'll find out.





On Wed, Jul 6, 2011 at 2:34 PM, Wim Lewis <email@hidden> wrote:
>
> On 6 Jul 2011, at 11:23 AM, Eric E. Dolecki wrote:
>> 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.
>
>
> Soundex (by design) does an exact match of the first character, and a sort of rough phonetic match of the rest of the string--- it was developed for matching surnames. You probably want a different algorithm if you want Ace to match Place. The Wikipedia article on Soundex has some links that might serve as starting points.
>
>
> _______________________________________________
>
> 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
>
_______________________________________________

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>)
 >Re: Using a Soundex category... (From: Wim Lewis <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