Description Usage Arguments Author(s) References See Also Examples
Create jTRACE language (phonemic inventory)
1 2 3 4 5 6 7 | jtrace_create_language(
phonemes = NULL,
features,
duration_scalar = NULL,
allophonic_relations = NULL,
language_name
)
|
phonemes |
Character vector indicating the jTRACE notation of each phoneme. It must be the same length as the number of rows of the matrix or data frame introduced in |
features |
A M x N matrix or data frame (where M is the number of phonemes and N is 7, the number of features) that contains the values of the features (columns) for each phoneme (rows) with a score ranging from 0 to 9. |
duration_scalar |
Matrix or data frame indicating the values of the duration scalar, with each phoneme as a row and each feature as a column. If NULL (default), all duration values are set to 1. |
allophonic_relations |
Array or data frame with logical values indicating whether each combination of phonemes is an allophone, with phonemes are rows and columns. If NULL (default), no allophonic relations are specified. |
language_name |
Name of the language that will be created. |
Gonzalo Garcia-Castro gonzalo.garciadecastro@upf.edu
Strauss, T. J., Harris, H. D., & Magnuson, J. S. (2007). jTRACE: A reimplementation and extension of the TRACE model of speech perception and spoken word recognition. Behavior Research Methods, 39(1), 19-30.
jtrace_list_languages
for listing available languages, and jtrace_get_language
for importing a language.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# first, we create a character vector with the phoneme symbols
p <- c("-", "a", "s", "d", "f", "g", "c")
# then we create a the features matrix
f <- data.frame(
bur = c(9, 6, 4, 3, 1, 1, 2),
voi = c(7, 4, 3, 3, 3, 3, 4),
con = c(8, 2, 4, 2, 5, 5, 6),
grd = c(4, 6, 1, 4, 6, 8, 6),
dif = c(6, 3, 2, 6, 6, 6, 7),
voc = c(3, 8, 1, 6, 6, 7, 4),
pow = c(6, 4, 1, 6, 1, 1, 5)
)
# now we create the language
jtrace_create_language(language_name = "my_language", phonemes = p, features = f)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.