POS-scoped deletion blocks metathesis analysis of other words (ParseWord incomplete)
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
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 _ aso 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sillsdev/machine
-
ConvertUsfmVersificationHandler does not move headings immediately before re-versified verses to the new chapterForse già presa @Enkidu93 l’ha presa 4 giorni fa. Aperta
sillsdev/machine#518 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
ConvertUsfmVersificationHandler doesn't merge verses correctlyForse già presa @Enkidu93 l’ha presa 4 giorni fa. Aperta
sillsdev/machine#517 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Environment matchers pay for captures they never read; key the traversal on what the caller consumesAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
sillsdev/machine#515 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
HermitCrab: Word.ExpandAlternatives discards Unify's success flag and can null the realizational FSAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sillsdev/machine
Issue simili
-
area-ai untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
dotnet/extensions#7790 ·
I maintainer di solito rispondono entro 1 giorno
-
P2 testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
dotnet/runtime#134766 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
0 - Backlog Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
BrighterCommand/Brighter#4444 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno