Package: phontrast 2.5.1
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. rank_contrasts() implements a measurement protocol for ranking speakers' contrasts by Jensen-Shannon distance and checking the ranking against Pillai, with sample-size licensing and a bandwidth-sensitivity check. Also provides utilities for preparing estimates for downstream modelling such as generalized additive models and mixed-effects models. Formerly released as 'phonJSD'.
Authors:
phontrast_2.5.1.tar.gz
phontrast_2.5.1.zip(r-4.7-any)phontrast_2.5.1.zip(r-4.6-any)phontrast_2.5.1.zip(r-4.5-any)
phontrast_2.5.1.tgz(r-4.6-any)phontrast_2.5.1.tgz(r-4.5-any)
phontrast_2.5.1.tar.gz(r-4.7-any)phontrast_2.5.1.tar.gz(r-4.6-any)
phontrast_2.5.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
phontrast/json (API)
| # Install 'phontrast' in R: |
| install.packages('phontrast', repos = c('https://berrygrant.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/berrygrant/phontrast/issues
- vowel_cohort - Simulated twelve-speaker vowel cohort
Last updated from:300c01682f. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 269 | ||
| source / vignettes | OK | 181 | ||
| linux-release | OK | 190 | ||
| macos-release | OK | 172 | ||
| macos-oldrel | OK | 207 | ||
| windows-devel | OK | 213 | ||
| windows-release | OK | 201 | ||
| windows-oldrel | OK | 185 | ||
| wasm-release | OK | 99 |
Exports:bhattacharyya_mvnormboot_jsdcompare_overlap_metricsestimate_bhattestimate_jsdestimate_overlapestimate_pillaiextract_mfccglobal_boot_jsdglobal_pillaihier_boot_jsd_modelinspect_contrastjsdjsd_kde_ndjsd_summarykl_divpercent_overlap_kdepercentile_rankphontrastphontrast_palettepillai_overlapplot_category_pcaplot_category_spaceplot_contrastplot_overlap_metricsplot_rank_agreementprepare_jsd_betaprotocol_floorsrank_contrastsrecommended_estimatorscale_color_phontrastscale_colour_phontrastscale_fill_phontrastspeaker_bhattspeaker_jsdspeaker_pillaitheme_phontrast
Dependencies:clidplyrFNNgenericsgluekernlabKernSmoothkslatticelifecyclemagrittrMatrixmclustmgcvmulticoolmvtnormnlmepillarpkgconfigpracmapurrrR6Rcpprlangtibbletidyselectutf8vctrswithr
Last update: 2026-10-07
Started: 2026-10-06
Last update: 2026-07-21
Started: 2026-06-26
Last update: 2026-07-21
Started: 2026-06-26