Universe

DOI Typst Package MIT License User Manual

Charis SIL font is needed for this package to work exactly as intended, but you can also use your own font with #phonokit-init(font: "..."). New Computer Modern is used for arrows.

Some examples


IPA transcription based on tipa

Consonant inventories (with pre-defined languages)

Vowel trapezoids (with pre-defined languages)

Multi-tier representations

Syllable structure (onset-rhyme and moraic)

Prosodic word (with metrical parsing)

Metrical grids with IPA support

Autosegmental phonology: features

Autosegmental phonology: tones

SPE-style feature matrix

OT tableaux with automatic shading

MaxEnt tableaux with automatic calculation

Click on any image to view its source code.

Manual 🔍

Download manual for a comprehensive demonstration of available functions and their usage.

Fonts

As of version 0.3.7, the package allows the user to choose a global font for all functions. By default, Charis SIL is used (Typst has a fallback font should you not have it installed). However, you can use whichever font you prefer with the following command:

#import "@preview/phonokit:0.4.1": *
#phonokit-init(font: "New Computer Modern") // <- add to the top of your document

IPA Module

  • tipa-style input: Use familiar LaTeX tipa notation instead of hunting for Unicode symbols
  • Comprehensive symbol support: most common IPA consonants, vowels, and diacritics
  • Vowel charts: Plot vowels on the IPA vowel trapezoid with accurate positioning
  • Consonant tables: Display consonants in the pulmonic IPA consonant table
  • Scalable charts: Adjust size to fit your document layout (scaling includes text as expected)

Prosody Module

  • Prosodic structure visualization: Draw syllable structures (onset-rhyme and moraic representations) as well as feet and prosodic words with simple and intuitive syntax. You can also define which symbols you prefer to use for different prosodic domains
  • Multi-tier representations: Create complex non-linear representations
  • Metrical grids: Inputs as strings or tuples
  • Sonority profile: Visualize the sonority of a string

Autosegmental Module

  • Features and tones: Create autosegmental representation for both features and tones
  • Support for common processes: Easily add linking, delinking, floating tones, one-to-many relationships and highlighting. Additional options for spacing and annotation also available

SPE module

  • Feature matrices: Easily display feature matrices for SPE-style rules

Optimality Theory Module

  • OT tableaux: Create publication-ready Optimality Theory tableaux with automatic formatting
  • Automatic shading: Cells are automatically grayed out after fatal violations
  • Winner indication: Optimal candidates automatically marked with ☞ (pointing finger)
  • IPA support: Input and candidate forms can use tipa-style IPA notation
  • Hasse diagrams: Generate Hasse diagrams to visualize constraint rankings

Maximum Entropy Module

  • MaxEnt tableaux: Generate Maximum Entropy grammar tableaux with probability calculations
  • Automatic calculations: Computes harmony scores H(x), unnormalized probabilities P*(x), and normalized probabilities P(x)
  • Visual probability bars: Optional graphical representation of candidate probabilities
  • IPA support: Input and candidate forms can use tipa-style IPA notation

Harmonic Grammar Module

  • HG tableaux: Generate HG tableaux with automatic calculation of harmony given constraint weights and violations
  • Noisy HG: Generate NHG tableaux with automatic calculation of harmony and probabilities derived from simulated noise and multiple evaluations

General Module

  • Numbered examples: Create examples and sub-examples with labels and correct alignment
  • Shortcuts: Quick commands to add a range of arrows, angle brackets for extrametricality, and SPE-style underlines for context

Installation

Package Repository

Package website

For the most up-to-date information about the package, vignettes and demos, visit https://gdgarcia.ca/phonokit.

License

MIT

Author

Guilherme D. Garcia
Email: guilherme.garcia@lli.ulaval.ca
Website: https://gdgarcia.ca

Citation

If you use this package in your research, please visit its GitHub repository and cite it using the metadata from the CITATION.cff file or click the “Cite this repository” button in the GitHub sidebar.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.