We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1194245 commit ce9cde8Copy full SHA for ce9cde8
src/SIL.Machine.Morphology.HermitCrab/AnalysisStratumRule.cs
@@ -93,9 +93,10 @@ public IEnumerable<Word> Apply(Word input)
93
if (mergeEquivalentAnalyses)
94
{
95
Shape shape = mruleOutWord.Shape;
96
- if (shapeWord.ContainsKey(shape))
+ Word canonicalWord;
97
+ if (shapeWord.TryGetValue(shape, out canonicalWord))
98
- shapeWord[shape].Alternatives.Add(mruleOutWord);
99
+ canonicalWord.Alternatives.Add(mruleOutWord);
100
continue;
101
}
102
shapeWord[shape] = mruleOutWord;
0 commit comments