Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
phonetics / METADATA
Size: Mime:
Metadata-Version: 2.4
Name: phonetics
Version: 1.0.6
Summary: Compute phonetic key of strings for indexing or fuzzy matching
Home-page: https://github.com/Zack--/phonetics
Author: Zack Dibe
Author-email: contact@zackdibe.com
License: MIT
Keywords: phonetics metaphone soundex indexing search fuzzy
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: summary

===========
 Phonetics
===========

|PyPI-Status|  |PyPI-Versions|

|LICENCE|

The phonetics module computes the phonetic key of a string using different algorithms.

 * Soundex
 * NYSISS
 * Metaphone
 * Double Metaphone

------------------------------------------

.. contents:: Table of contents
   :backlinks: top
   :local:


Installation
============

Latest PyPI stable release
--------------------------

|PyPI-Status|

.. code:: sh

    pip install phonetics

Latest development release on github
------------------------------------

|GitHub-Status| |GitHub-Stars| |GitHub-Forks|

Pull and install in the current directory:

.. code:: sh

    pip install -e git+https://github.com/Zack--/phonetics.git@master#egg=phonetics

Running tests
-------------

By `Duncan McGreggor <https://github.com/oubiwann>`_

.. code-block:: shell

    $ python -m unittest discover phonetics/tests/ -v

Or

.. code:: sh

   nosetests --with-coverage --cover-package=phonetics

Usage
=====

.. code-block:: python

    >>> import phonetics
    >>> phonetics.dmetaphone('Danger')
    ('TNJR', 'TNKR')


Module Contents
===============

The ``phonetics`` module defines the following function:

``phonetics``. **soundex**\(*source* [, *size=4*])
  Use the soundex algorithm to create the phonetic key of the **source** string.

``phonetics``. **nysiis**\(*source*)
  Use the New York State Identification and Intelligence System to create the phonetic key of the **source** string.

``phonetics``. **metaphone**\(*source*)
 |  Use the metaphone algorithm to create the phonetic key of the **source** string.
 |  Based on `Lawrence Philips' Metaphone Algorithm <http://aspell.net/metaphone/>`__.

``phonetics``. **dmetaphone**\(*source*)
 |  Use the double methaphone algorithm to create the phonetic key of the **source** string.
 |  Based on `Lawrence Philips' Metaphone Algorithm <http://aspell.net/metaphone/>`__.

Contributions
=============

All source code is hosted on `GitHub <https://github.com/ToasterCo/apiaiassistant>`__.
Contributions are welcome.

See the
`CONTRIBUTING <https://raw.githubusercontent.com/Zack--/apiaiassistant/master/CONTRIBUTING.md>`__
file for more information.


LICENCE
=======

Open Source : |LICENCE|

Authors
=======

Ranked by contributions.

-  Zack Dibe (Zack--) *

`*` Original author

.. |PyPI-Status| image:: https://img.shields.io/pypi/v/phonetics.svg
   :target: https://pypi.python.org/pypi/phonetics

.. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/phonetics.svg
   :target: https://pypi.python.org/pypi/phonetics

.. |PyPI-Versions| image:: https://img.shields.io/pypi/pyversions/phonetics.svg
   :target: https://pypi.python.org/pypi/phonetics

.. |LICENCE| image:: https://img.shields.io/pypi/l/phonetics.svg
   :target: https://raw.githubusercontent.com/Zack--/phonetics/master/LICENCE

.. |GitHub-Status| image:: https://img.shields.io/github/tag/Zack--/phonetics.svg?maxAge=2592000
   :target: https://github.com/Zack--/phonetics/releases

.. |GitHub-Forks| image:: https://img.shields.io/github/forks/Zack--/phonetics.svg
   :target: https://github.com/Zack--/phonetics/network

.. |GitHub-Stars| image:: https://img.shields.io/github/stars/Zack--/phonetics.svg
   :target: https://github.com/Zack--/phonetics/stargazers