Documentation

Linglib.Theories.Phonology.RuleBased.Defs

SPE Phonological Rules #

Rule-based phonology following the SPE formalism, as presented in @cite{hayes-2009} Introductory Phonology, Chapter 6.

The core notation is A → B / C __ D: a segment matching natural class A undergoes structural change B when preceded by context C and followed by context D.

Design: We reuse Segment (a partial feature specification) as both concrete segment and natural class descriptor. An underspecified segment (many features none) IS a natural class — no separate pattern type needed.

This module provides:

@cite{hayes-2009}

Create a segment from a list of (feature, value) pairs. Unmentioned features are unspecified (none), giving natural class semantics: ofSpecs [(continuant, false)] matches all [-cont] segments.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Does segment s match pattern p? True when every feature specified in p has the same value in s. An unspecified feature in p matches anything (natural class semantics).

    Hayes §6.2: "The target of a rule identifies a natural class of sounds — all segments sharing a particular set of feature values."

    Equations
    Instances For

      Apply feature changes from change to s: specified features in change override those in s, unspecified features are preserved.

      This implements the structural change A → B when B is a partial specification — only the mentioned features change.

      Equations
      Instances For

        An element of a phonological rule's structural description. Context positions can be segment patterns (natural classes) or word boundaries (Hayes §6.2: ]word or #).

        Instances For

          The structural change of a phonological rule.

          • changeFeatures : SegmentRuleEffect

            Change features: merge change into the target segment. Hayes §6.2: A → B where B is a feature bundle.

          • delete : RuleEffect

            Delete the target segment. Hayes §6.4: A → ∅.

          Instances For

            A phonological rule in SPE notation: A → B / C __ D.

            • target: natural class A (segments this rule applies to)
            • effect: structural change B (feature change or deletion)
            • leftContext: C (what must precede the target)
            • rightContext: D (what must follow the target)

            Hayes Ch 6: "A rule consists of four parts: the target, which identifies the class of sounds to be changed; the structural change, specifying what happens; and the environment, specifying where the change occurs."

            Instances For

              Does the right context match starting at position pos in segs (where pos is the index immediately after the target)? Scans rightward through the context list.

              Equations
              Instances For

                Does the left context match ending at position pos in segs (where pos is the index immediately before the target)? Context is ordered left-to-right, so the rightmost element is closest to the target. We reverse to scan inward-to-outward (leftward).

                Equations
                Instances For
                  Equations
                  Instances For

                    Apply a phonological rule to a segment string. Scans left-to-right, applying the rule at every position where the target and context match. Returns the transformed string.

                    Equations
                    Instances For
                      @[irreducible]
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        Apply an ordered sequence of rules (derivation). Rules apply in order, each seeing the output of the previous. This is the core of ordered rule application in SPE phonology.

                        Equations
                        Instances For

                          Preglottalization (Hayes p.125): [-cont, -voice] → [+c.g.] / __]word

                          Voiceless stops become glottalized word-finally.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            Korean Stop Nasalization (Hayes p.132): [-del.rel.] → [+nasal, +voice, +son] / __ [+nasal]

                            Non-affricate stops become nasalized before nasals.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              Postnasal /t/ Deletion (Hayes p.133): [-cont, +cor, +ant, -voice] → ∅ / [+nasal] __ [+syll]

                              Voiceless coronal stops delete between a nasal and a vowel.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                Every segment matches itself as a pattern.

                                Applying an empty change (no features specified) is the identity.

                                Derivation with no rules is the identity.