It may be that Lingua::EN::Tagger is helpful.
In reply to Re: Concatenating strings with different length by GrandFather in thread Concatenating strings with different length by Anonymous Monk