Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

POS-scoped deletion blocks metathesis analysis of other words (ParseWord incomplete)

Aperta
#520 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
compilers

Direzione di ricerca

Start with the ParseWord path and the conformance fixture languages/metathesis-phase-isolation, adding the prHDel rule to reproduce the missing parses for nui and mu+i. Trace how the optional deletion node is handled across deeper strata and compare it with rewrite-rule handling. Done means ParseWord returns NIU and MI+3SGU while forward generation and the existing fixture expectations still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A part-of-speech-scoped deletion rule makes metathesis words of another part of speech unparseable. Forward generation still produces them, so ParseWord is incomplete.

Repro

Start from conformance fixture languages/metathesis-phase-isolation (PR #480, 34215889) and add one deletion rule to the surface Morphology stratum, scoped to a part of speech that no metathesis word uses:

<PhonologicalRule id="prHDel">
  <PhoneticInput><PhoneticSequence><SimpleContext naturalClass="ncH" /></PhoneticSequence></PhoneticInput>
  <PhonologicalSubrules>
    <PhonologicalSubrule requiredPartsOfSpeech="posRedup">
      <PhoneticOutput><PhoneticSequence /></PhoneticOutput>
      <Environment>
        <LeftEnvironment><PhoneticTemplate><PhoneticSequence><SimpleContext naturalClass="ncVowel" /></PhoneticSequence></PhoneticTemplate></LeftEnvironment>
        <RightEnvironment><PhoneticTemplate><PhoneticSequence><SimpleContext naturalClass="ncVowel" /></PhoneticSequence></PhoneticTemplate></RightEnvironment>
      </Environment>
    </PhonologicalSubrule>
  </PhonologicalSubrules>
</PhonologicalRule>

(ncH = <SegmentNaturalClass id="ncH"><Segment segment="cH" /></SegmentNaturalClass>; add prHDel to the Morphology stratum's phonologicalRules.)

Word Root stratum / POS Expected Got
nui SimpleMeta / posSimpleMeta NIU none
mu+i ComplexMeta / posComplexMeta MI+3SGU none

Both words still generate forward (they are in the fixture's expected set, and removing prHDel restores them). The rule can never apply to either word in synthesis: wrong part of speech, and their roots live in deeper strata.

What seems to happen

Unapplying the deletion inserts an optional h between every vowel pair, before the part of speech is known, so n u (h) i. The deeper strata's metathesis rules then fail to match u–i adjacency across that optional node, so neither the (h)-present nor the (h)-absent reading reaches the metathesis unapplication. The optional node should be skippable, as it is for rewrite rules.

Notes

  • Found while adding reduplication × phonology cases for #519. The fixture now uses V _ a so it doesn't hit this.
  • It is independent of #519; master fails the same way.
  • Scope unknown: any POS-scoped deletion in a shallower stratum may block metathesis in deeper ones.
Lingua principale
C#
Stelle
29
Fork
17
Merge medio
4g 15h
PR unite (30g)
8

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sillsdev/machine

Tutte le issue di sillsdev/machine

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.