Understand the `Modifiers` data structure
masterThe Modifiers object manages how diacritics (modifiers) affect phonological features and IPA strings. It is returned by generate_modifiers().
Key attributes:
prefix_modifiers: A list of strings representing modifiers that appear before a base phoneme (e.g., aspiration).postfix_modifiers: A list of strings representing modifiers that appear after a base phoneme.transforms: A dictionary mapping a modifier string to a tuple containing:- An
np.ndarrayrepresenting the feature change (the transform vector). - A
Callablethat takes the current phoneme string and returns the new phoneme string with the modifier applied.
- An