laziness, impatience, and hubris | |
PerlMonks |
Re: Some kind of fuzzy logic.by dragonchild (Archbishop) |
on Oct 17, 2003 at 20:17 UTC ( [id://300137]=note: print w/replies, xml ) | Need Help?? |
Basically, you're matching abbreviations. So, you need a 2-way mapping between full name and abbreviation. Once you have that, you can do a split, remove periods, and replace using your mapping.
Is this a perfect solution? No. But, it'll get you 80% of the way there ... ------
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 ... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Seekers of Perl Wisdom
|
|