tidynorm

tidy vowel normalization

https://github.com/jofrhwld/tidynorm

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

tidy vowel normalization

Basic Info
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • Open Issues: 2
  • Releases: 1
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License

README.md

tidynorm tidynorm website

R-CMD-check CRAN
status <!-- badges: end -->

The goal of {tidynorm} is to provide convenient and tidy functions to normalize vowel formant data.

Installation

You can install tidynorm like so

r install.packages("tidynorm")

You can install the development version of tidynorm like so:

``` r

if you need to install remotes

install.packages("remotes")

remotes::install_github("jofrhwld/tidynorm") ```

Example

Vowel formant frequencies are heavily influenced by vocal tract length differences between speakers. Equivalent vowels between speakers can have dramatically different frequency locations.

r library(tidynorm) library(ggplot2)

Plotting Options ``` r options( ggplot2.discrete.colour = c( lapply( 1:6, \(x) c( "#4477AA", "#EE6677", "#228833", "#CCBB44", "#66CCEE", "#AA3377" )[1:x] ) ), ggplot2.discrete.fill = c( lapply( 1:6, \(x) c( "#4477AA", "#EE6677", "#228833", "#CCBB44", "#66CCEE", "#AA3377" )[1:x] ) ) ) theme_set( theme_minimal( base_size = 16 ) ) ```
Plotting Code ``` r ggplot( speaker_data, aes( F2, F1, color = speaker ) ) + ggdensity::stat_hdr( probs = c(0.95, 0.8, 0.5), alpha = 1, fill = NA, linewidth = 1 ) + scale_x_reverse() + scale_y_reverse() + coord_fixed() + labs( title = "unnormalized" ) ```

The goal of {tidynorm} is to provide tidyverse-friendly and familiar functions that will allow you to quickly normalize vowel formant data. There are a number of built in functions based on conventional normalization methods.

r speaker_data |> norm_nearey( F1:F3, .by = speaker, .names = "{.formant}_nearey" ) -> speaker_normalized

#> Normalization info
#> • normalized with `tidynorm::norm_nearey()`
#> • normalized `F1`, `F2`, and `F3`
#> • normalized values in `F1_nearey`, `F2_nearey`, and `F3_nearey`
#> • grouped by `speaker`
#> • within formant: FALSE
#> • (.formant - mean(.formant, na.rm = T))/(1)
Plotting Code ``` r speaker_normalized |> ggplot( aes( F2_nearey, F1_nearey, color = speaker ) ) + ggdensity::stat_hdr( probs = c(0.95, 0.8, 0.5), alpha = 1, fill = NA, linewidth = 1 ) + scale_x_reverse() + scale_y_reverse() + coord_fixed() + labs( title = "Nearey Normalized" ) ```

There is also a tidynorm::norm_generic() function to allow you to define your own bespoke normalization methods. For example, a “robust Nearey” normalization method using the median, instead of the mean, could be done like so.

r speaker_rnearey <- speaker_data |> norm_generic( F1:F3, .by = speaker, .by_formant = FALSE, .pre_trans = log, .L = median(.formant, na.rm = T), .names = "{.formant}_rnearey" )

#> Normalization info
#> • normalized with `tidynorm::norm_generic()`
#> • normalized `F1`, `F2`, and `F3`
#> • normalized values in `F1_rnearey`, `F2_rnearey`, and `F3_rnearey`
#> • grouped by `speaker`
#> • within formant: FALSE
#> • (.formant - median(.formant, na.rm = T))/(1)
Plotting Code ``` r speaker_rnearey |> ggplot( aes( F2_rnearey, F1_rnearey, color = speaker ) ) + ggdensity::stat_hdr( probs = c(0.95, 0.8, 0.5), alpha = 1, fill = NA, linewidth = 1 ) + scale_x_reverse() + scale_y_reverse() + coord_fixed() + labs( title = "Robust Nearey Normalized" ) ```

Owner

  • Name: Josef Fruehwald
  • Login: JoFrhwld
  • Kind: user
  • Company: University of Kentucky

GitHub Events

Total
  • Issues event: 10
  • Watch event: 2
  • Issue comment event: 4
  • Push event: 91
  • Pull request event: 14
  • Create event: 8
Last Year
  • Issues event: 10
  • Watch event: 2
  • Issue comment event: 4
  • Push event: 91
  • Pull request event: 14
  • Create event: 8

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 6
  • Total pull requests: 4
  • Average time to close issues: 3 days
  • Average time to close pull requests: about 6 hours
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 0.67
  • Average comments per pull request: 0.0
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 6
  • Pull requests: 4
  • Average time to close issues: 3 days
  • Average time to close pull requests: about 6 hours
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.67
  • Average comments per pull request: 0.0
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • JoFrhwld (3)
  • JoeyStanley (3)
Pull Request Authors
  • JoFrhwld (8)
Top Labels
Issue Labels
enhancement (2) bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 187 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: tidynorm

Tools for Tidy Vowel Normalization

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 187 Last month
Rankings
Dependent packages count: 26.2%
Dependent repos count: 32.3%
Average: 48.3%
Downloads: 86.5%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • dplyr * imports
  • glue * imports
  • rlang * imports
  • stringr * imports
  • tidyr * imports
  • tidyselect * imports
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite