View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Michael Hendricks > Text-Phonetic-VideoGame-0.05 > Text::Phonetic::VideoGame



Annotate this POD


New  1
Open  0
View/Report Bugs
Module Version: 0.05   Source  


Text::Phonetic::VideoGame - phonetic encoding for video game titles


    use Text::Phonetic::VideoGame;
    my $phonetic = Text::Phonetic::VideoGame->new;
    my $first = $phonetic->encode('super smash brothers');
    my $second = $phonetic->encode('Super Smash Bros.');
    warn "They match\n" if $first eq $second;

    warn "They match\n" if $phonetic->compare('ff 7', 'final fantasy vii');

This module implements a phonetic algorithm for the comparison of video game titles. It uses String::Nysiis to disambiguate common English typos and adds additional rules which apply specifically to typos in video game titles.

The module implements the Text::Phonetic interface. See that documentation for details about the interface.


See Text::Phonetic.


Common English Typos

String::Nysiis handles common English typos such as misspellings of proper names which makes titles like "adams family" match "addams family".

Punctuation Variants

Most punctuation and its variants are handled correctly. For instance "tom & jerry" and "tom and jerry" or "Lord of the Rings: Two Towers" with and without the colon.

Common Abbreviations

Abbreviations such as "bros" for "brothers" and "TMNT" for "Teenage Mutant Ninja Turtles".

Canonical Years

The titles "NFL 2004", "NFL '04" and "NFL 2K4" all hash to the same code.

Canonical Numbers

Roman numerals, ordinal numbers and spelled out numbers are recognized as being equal.

Compound Words

The game titles "mega man" and "megaman" are recognized as being identical.

Word Order

The order of certain parts of a title are often confused. For instance, "Sonic Adventure 2: Battle" and "Sonic Adventure: Battle 2" both indicate the same game.


Michael Hendricks, <>


Please report any bugs or feature requests to bug-text-phonetic-videogame at, or through the web interface at I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

The source code is available on GitHub: Patches and pull requests are welcome.


Thanks to JJGames ( and Video Game Price Charts ( for sponsoring development of this module.


Copyright 2009 Michael Hendricks, all rights reserved.

This program is released under the following license: MIT

syntax highlighting: