Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Word Frequency in Particular Sentencesby papidave (Pilgrim) |
on Mar 28, 2008 at 11:54 UTC ( [id://676953]=note: print w/replies, xml ) | Need Help?? |
swampyankee++ for noticing the problem with abbreviations. Short of a the ability to parse and comprehend grammar, it's going to be very difficult to separate
"We sold the division to MegaTech, Ltd. in Asia last week, who flipped the sale to someone else."from "We sold the division to MegaTech Industries. In Asia last week, they flipped the sale to someone else."other than the fact that we are supposed to start a new sentence with an upper-case letter. There may be examples where that following word is a proper noun, however -- in which case it's going to be a very hard nut to crack. If, however, you only care about the "typical" case (because this is going to be a one-shot tool), you could:
In Section
Seekers of Perl Wisdom
|
|