phontrast
Contrast and Separation Metrics for Phonological Categories
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'.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
2.3.1 |
rolling linux/jammy R-4.5 | phontrast_2.3.1.tar.gz |
479.0 KiB |
2.3.1 |
rolling linux/noble R-4.5 | phontrast_2.3.1.tar.gz |
479.1 KiB |
2.3.1 |
rolling source/ R- | phontrast_2.3.1.tar.gz |
247.5 KiB |
2.3.1 |
latest linux/jammy R-4.5 | phontrast_2.3.1.tar.gz |
479.0 KiB |
2.3.1 |
latest linux/noble R-4.5 | phontrast_2.3.1.tar.gz |
479.1 KiB |
2.3.1 |
latest source/ R- | phontrast_2.3.1.tar.gz |
247.5 KiB |
2.3.1 |
2026-04-23 source/ R- | phontrast_2.3.1.tar.gz |
0 B |