Skip to content

phontrast

2.3.1

Contrast and Separation Metrics for Phonological Categories

0packages depend
42downloads / year
83.8%test coverage
12/12checks pass

Overview

About
Maintained by Grant M. BerryFirst published 2026-08-091 releasesCRAN page ↗GitHub ↗

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

CRAN checks
12OK
Slowest check: 9.8 min · r-devel-windows-x86_64
Check history
  • OK2026-08-10
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation signals are not tracked yet for this package.

Downloads

42
CRAN downloads in the past year
Rank #24,917 · ~0/day · ~4/mo
phontrast
Daily download trend is not available in this view yet.

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
11Releases
Last activity 2026-08-12

Repository practices

Upstream repositoryBeta

Repository github.com/berrygrant/phontrast is linked, but repository-practices checks have not run for it yet.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (8)
ksdplyrpurrrtibblerlangstatsgrDevicesutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • 2.3.1Latest
    2026-08-09 · current release
  • R
    R 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")
Berry, G. M. (2026). phontrast: Contrast and Separation Metrics for Phonological Categories (Version 2.3.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for phontrast version 2.3.1 [Data set]. HJJB, LLC. Data release v2026-08-13. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy