Glenn wrote:

> 2 ways that I am aware of:
> 
> 1) Describe the words that form acronyms using rules, such as 
> a maximum 
> length, maximum number of vowels, etc., and then write code that 
> implements those rules.  Be careful of the acronym for Automobile 
> Association of America.
> 
> 2) Find someone else's acronym dictionary, lookup table, or 
> whitelist, 
> and use it.

3) Do the reverse: get a good spelling dictionary (or use Lingua::Ispell),
and treat all small 'words' not contained within as acronyms, and capitalize
them.

Notes:
- This will get you most of the way there, but it is still not perfect. No
solution will be able to distinguish beween acronyms that also happen to be
words. You'll still need manual review.
- This has the potentially beneficial side effect of making typos stand out.


-- 
Mark Thomas                    [EMAIL PROTECTED] 
Internet Systems Architect     DigitalNet, Inc. 

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to