Skip to content

Instantly share code, notes, and snippets.

View nsh87's full-sized avatar

Nikhil Haas nsh87

  • Bay Area, California
View GitHub Profile
@nsh87
nsh87 / pypi-release-checklist.md
Last active December 18, 2015 03:11 — forked from audreyfeldroy/pypi-release-checklist.md
My PyPI Release Checklist
  • Checkout dev branch
git checkout dev
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
@nsh87
nsh87 / metaphone.py
Created November 22, 2015 02:20
Python 3 version of doublemetaphone
# -*- coding: utf-8 -*-
"""
The original Metaphone algorithm was published in 1990 as an improvement over
the Soundex algorithm. Like Soundex, it was limited to English-only use. The
Metaphone algorithm does not produce phonetic representations of an input word
or name; rather, the output is an intentionally approximate phonetic
representation. The approximate encoding is necessary to account for the way
speakers vary their pronunciations and misspell or otherwise vary words and
names they are trying to spell.