The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lingua::EN::ABC - American, British, and Canadian English

SYNOPSIS

    use Lingua::EN::ABC ':all';
    my $colour = a2b ('color');

DESCRIPTION

This is an experimental module. This module offers functions to convert between the spellings and vocabulary of American, British, and Canadian versions of English. The interface is described below.

FUNCTIONS

a2b

    my $british = a2b ('color');
    # $british = 'colour'.

An option oxford controls whether to use Oxford spelling (realize rather than realise):

    my $oxford_british = a2b ('realize', oxford => 1);

b2a

    my $american = b2a ('the colour of my pyjamas');
    # $american = 'the color of my pajamas'

Convert British spellings into American spellings.

a2c

    my $canadian = a2c ('the color');
    # $canadian = 'the colour'

Convert American to Canadian spelling.

c2a

    my $american = c2a ('the color');
    # $american = 'the colour'

Convert Canadian to American spelling.

b2c

    my $canadian = b2c ('the programme');
    # $canadian = 'the program'

Convert British to Canadian spelling.

c2b

    my $british = c2b ($canadian);

Convert Canadian to British spelling. An option oxford controls whether to use Oxford spelling (realize rather than realise):

    my $oxford_british = c2b ($canadian, oxford => 1);

SEE ALSO

This module's design is up for discussion. You can either use the Github issues page at https://github.com/benkasminbullock/Lingua-EN-ABC/issues or the Prepan site at http://prepan.org/module/nXWEF3to2nu.

The file containing the spelling variations is "abc.txt" in the top directory of the distribution.

AUTHOR

Ben Bullock, <bkb@cpan.org>

LICENCE

This program and associated files may be used, copied, distributed, and modified under the same terms as Perl itself.