Are you writing this to a database? You may be able to use the Full Text search 
feature to compare the new string with the current string and give you a score 
on the difference.

Otherwise, sit back and get your head into this:

http://en.wikipedia.org/wiki/Levenshtein_distance

And come back to us when you've wrapped it in a cfc... 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve 
Onnis
Sent: Tuesday, 1 July 2008 4:43 PM
To: [email protected]
Subject: [cfaussie] Re: Text change percentage or score


What I want to do it implement like a "Recently Updated" type of function into 
an app but I don't want to go by the Date Modified stamp because they might 
just be fixing a typo or something in there which doesn't really class as a 
major update. 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Barry 
Beattie
Sent: Tuesday, 1 July 2008 4:39 PM
To: [email protected]
Subject: [cfaussie] Re: Text change percentage or score


just kicking around ideas...how do you define what is changed?

individual letter placement?
words?
order?

is this a 100% change?

1) Hi my name is Steve
2) name Hi is Steve my


how about this?

1) Hi my name is Steve
1) hI MY NAME IS sTEVE




On Tue, Jul 1, 2008 at 4:20 PM, Steve Onnis <[EMAIL PROTECTED]> wrote:
>
> Does anyone know of a method where you can calculate either by 
> percentage or score or something as to how much a string has changed?
>
> For example:
> 1) Hi my name is Steve
> 2) Hi my name is John
>
> Only the name has changed to the actual percentage change would be 
> low, like 20%
>
> Or....
>
> 1) Hi my name is Steve
> 2) The cow jumped over the moon
>
> The percentage change would be high, like 100%
>
>
>
> Steve
>
>
>
> >
>







--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to