Skip to content

MiniXC/phones

Repository files navigation

phones

Docs

phones

pdm-managed

phones is a python library for the easy handling of phones in the International Phonetic Alphabet. These IPA phones can be useful because they can describe how words are pronounced in most languages.

Feature Overview

  • Extract numeric feature vectors from phones.
  • Map phones from one language to another by finding the closest phones.
  • Convert between ARPABET, X-SAMPA/SAMPA and IPA notation.
  • Compute phone distances.
  • Do phone arithmetic on a phone and phone-feature level.
  • Visualise phones and their distances when installing phones[plots].

Installation

For the core libary:

pip install phones

For plotting:

pip install phones[plots]