<commit_before>Metaphone package for Go
======================

A port of `metaphone` module from the Natural javascript package: <https://github.com/NaturalNode/natural/blob/master/lib/natural/phonetics/metaphone.js>
Also see the wikipedia article on metaphone: <http://en.wikipedia.org/wiki/Metaphone>

Installation
-------------

    go install github.com/sanjayc77/metaphone 

This will install the `metaphone` package.

Example
-------

    import "metaphone"

    st := metaphone.Process("phonetics")  // => FNTKS

Tests
-----
<commit_msg>Lint.<commit_after>Metaphone package for Go
======================

A port of `metaphone` module from the Natural javascript package: <https://github.com/NaturalNode/natural/blob/master/lib/natural/phonetics/metaphone.js>

Also see the wikipedia article on metaphone: <http://en.wikipedia.org/wiki/Metaphone>

Installation
-------------

    go install github.com/sanjayc77/metaphone 

This will install the `metaphone` package.

Example
-------

    import "metaphone"

    st := metaphone.Process("phonetics")  // => FNTKS

Tests
-----

{'fraction_non_alphanumeric': 0.18005540166204986, 'fraction_numerical': 0.003693444136657433, 'mean_word_length': 3.4979253112033195, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7332268', 'n_tokens_mistral': 361, 'n_tokens_neox': 326, 'n_words': 80}