NAME

Text::Metaphone::Amharic - The Metaphone Algorithm for Amharic.

SYNOPSIS

use utf8;
require Text::Metaphone::Amharic;

my $mphone = new Text::Metaphone::Amharic;

my @keys  = $mphone->metaphone ( "ሥላሴ" );

foreach (@keys) {
    print "$_\n";
}

my $key = $mphone->metaphone ( "��ይ" );
print "key => $key\n";

$mphone->style ( "ipa" );

@keys  = $mphone->metaphone ( "ሥላሴ" );

foreach (@keys) {
    print "$_\n";
}

$mphone->style ( "ethiopic" );
  :
  :


The key "style" and Metaphone "grandularity" can be set at import time:

  use Text::Metaphone::Amharic ( style => "ipa", grandularity => "high" );

at instantiation time:

  my $mphone = new Text::Metaphone::Amharic ( style => "ipa", grandularity => "high" );

or anytime there after:

  $mphone->style ( "ethiopic" );
  $mphone->grandularity ( "low" );

DESCRIPTION

The Text::Metaphone::Amharic module is a reimplementation of the Amharic Metaphone algorithm of the Text::TransMetaphone package. This implementation uses an object oriented interface and will generate keys in Ethiopic script by default. IPA keys remain available and may be set at instantiation or import time or afterwards with the "style" method.

By default the keys are generated in "low" grandularity mode. The grandularity setting effects only how the keys for input method errors are generated. In "high" grandularity mode a key is returned for every possibly permutation, per key, in the substitutions of upper for lower and lower for upper mistrikes. In the default "low" grandularity mode a single key representing the "lowest common denominator" of the "high" mode keys is generated.

Like Text::TransMetaphone::am the terminal key returned under list context is a regular expression. Amharic character classes will be applied in the RE key as per the conventions of Regexp::Ethiopic::Amharic.

A reverse_key_ipa method is also provided to convert an IPA symbol key into a regular expression that would phonological sequence under Amharic orthography.

REQUIRES

Regexp::Ethiopic.

COPYRIGHT

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

BUGS

None presently known.

AUTHOR

Daniel Yacob, dyacob@cpan.org

SEE ALSO

Text::TransMetaphone

Included with this package:

examples/amphone.pl         examples/ipa-phone.pl
examples/amphone-high.pl    examples/ipa-phone-high.pl

1 POD Error

The following errors were encountered while parsing the POD:

Around line 371:

Non-ASCII character seen before =encoding in '"ሥላሴ"'. Assuming CP1252