in reply to Is it possible to find the matching words and the percentage of matching words between two texts?

How do you want the following cases to be dealt with?

Case 1:

$a="a b c d e f"; $b="f e d c b a";

Case 2:
$a="a a a a a"; $b="a"
Ronald Fischer <>