phontrast
2.3.1Contrast and Separation Metrics for Phonological Categories
Overview
Computes and compares multiple measures of separation and overlap between phonological categories (for example vowels or consonants) in arbitrary multi-dimensional acoustic spaces such as formant values, mel-frequency cepstral coefficients (MFCCs), duration, or learned embeddings. The main entry point, phontrast(), reports several contrast metrics in one call -- Jensen-Shannon divergence and distance (Lin, 1991) doi:10.1109/18.61115, the Pillai-Bartlett trace, Bhattacharyya distance and affinity, Mahalanobis distance, and proportional overlap -- globally or by group on a common separation-oriented scale, with bootstrap confidence intervals. Also provides utilities for preparing estimates for downstream modelling such as generalized additive models and mixed-effects models. Formerly released as 'phonJSD'.
Install
Health
- OK2026-08-107 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
Documentation signals are not tracked yet for this package.
Downloads
Repository
Repository practices
Repository github.com/berrygrant/phontrast is linked, but repository-practices checks have not run for it yet.
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
1 release. R releases are shown for context.
- 2.3.1Latest2026-08-09 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-08-09
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("phontrast")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-13, which the citation names so these numbers can be found later. More on citing and the projects behind them.