On Dec 19, 2013, at 5:30 AM, Matthew Kerwin <lists / ruby-forum.com> =
wrote:
> I just have to say, this is quite a complicated little task you've set=20=

> yourself.  I spent a couple of hours getting something[1] to even=20

Yes, this is a complicated problem. You can come close to a reasonable =
solution with brute force techniques (i.e many nested loops) but it will =
very likely be inefficient and quite limited. There are specialized =
algorithms for dealing with such problems, like n-gram and approximate =
string matching algorithms.

Regards,
Ammar