Example:
You want to compare such strings as "Hello how are you fine ?" , and "Are you fine Hello" ?
After this comparing you will have a coefficient of identical ...
---------------------------------------------------------------------------------
#include <String.au3>
#include <Array.au3>
func _compareequ($x1,$x2)
dim $y1[100]
dim $y2[100]
$x1=StringLower($x1)
$x2=StringLower($x2)
$x1=StringStripWS($x1,8)
$x2=StringStripWS($x2,8)
$len1=StringLen($x1)
$len2=StringLen($x2)
$y1 = StringToASCIIArray($x1)
$y2 = StringToASCIIArray($x2)
for $i=0 to Ubound($y1)-1
for $j=0 to Ubound($y2)-1
if $y1[$i]=$y2[$j] Then
$y1[$i]=0
$y2[$j]=0
EndIf
Next
Next
$mus1=0
$mus2=0
for $i=0 to Ubound($y1)-1
if $y1[$i]>0 then $mus1=$mus1+1
Next
for $j=0 to Ubound($y2)-1
if $y2[$j]>0 then $mus2=$mus2+1
Next
return (($len1-$mus1)/$len1)*(($len2-$mus2)/$len2)
EndFunc