knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Extracting a language

jTRACE includes a default language, which consists on a matrix with the scores of a series of phonemes across the seven feature dimensions considered by the TRACE model, a matrix with the duration score of each phoneme in each feature, and a matrix of logical values indicating the allophonic relations between phonemes. You can extract this language by running:

library(jtracer)
jtrace_install()
default_language <- jtrace_get_language(language_name = "default")

This function will return a named list, containing the feature scores, duration scalars, and allophonic relations between phonemes:

default_language$features
default_language$duration_scalar
default_language$allophonic_relations


bilingual-project/jtracer documentation built on Dec. 19, 2021, 9:42 a.m.