Re: return string that is the difference between two other strings
Re: return string that is the difference between two other strings
- Subject: Re: return string that is the difference between two other strings
- From: Gerd Knops <email@hidden>
- Date: Sat, 20 Sep 2014 17:36:05 -0500
NSLinguisticTagger might be worth a look.
And if you don't care about word counts, NSMutableSet -minusSet: or -intersectSet: could be of help as well.
Gerd
> On Sep 20, 2014, at 1:54 PM, 2551 <email@hidden> wrote:
>
> Definition:
>
> On 21 Sep 2014, at 00:53, Jens Alfke <email@hidden> wrote:
>
>> a set of the words that are in the second string but not in the first
>
> That's close. Any words that are in one string but not in the other. Yup, that is what I'm after.
>
> I'll pass if people start asking me what I mean by a 'word', though I'm well aware that that is a genuine question at certain levels and across different localisations. Take it that for the purpose of the inquiry I mean any combination of letters in the standard English alphabet that is space delimited. Punctuation and diacriticals can be ignored for my current purposes.
> _______________________________________________
>
> 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