Lingua::EN::Titlecase

Lingua::EN::Titlecase is a Perl module for titlecasing of English words by traditional editorial rules.
Download

Lingua::EN::Titlecase Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ashley Pond V
  • Publisher web site:
  • http://search.cpan.org/~ashley/Lingua-EN-Titlecase-0.06/lib/Lingua/EN/Titlecase.pm

Lingua::EN::Titlecase Tags


Lingua::EN::Titlecase Description

Lingua::EN::Titlecase is a Perl module for titlecasing of English words by traditional editorial rules. Lingua::EN::Titlecase is a Perl module for titlecasing of English words by traditional editorial rules.SYNOPSIS use Lingua::EN::Titlecase; my $tc = Lingua::EN::Titlecase->new("CAN YOU FIX A TITLE?"); print $tc->title(), $/; $tc->title("and again but differently"); print $tc->title(), $/; $tc->title("cookbook don't work, do she?"); print "$tcn";Editorial titlecasing in English is the initial capitalization of regular words minus inner articles, prepositions, and conjunctions.This is one of those problems that is somewhat easy to solve for the general case but impossible to solve for all cases. Hence the lack of module till now. This module takes an optimistic approach, assuming that some words, unless there are clues to the contrary, are likely to be correct already. Most titlecase implementations, for example, convert everything to lowercase first. This is obviously flawed for many common cases like proper names and abbreviations.# allow for style/usage plugins...?Simple techniques like-- $data =~ s/(w+)/uL$1/g;Fail on words like "can't" and don't always take into account editorial rules or cases like--compound words -- Perl-like abbreviations -- USA mixedcase and proper names -- eBay: nEw KEyBOArD all caps -- SHOUT ME DOWNLingua::EN::Titlecase attempts to cater to the general cases and provide hooks to address the special.Requirements:· Perl Requirements: · Perl


Lingua::EN::Titlecase Related Software