Skip to content

Commit 1c377e8

Browse files
authored
src(cs): fix spelling (#1237)
doesnt -> doesn't
1 parent fedfd7c commit 1c377e8

27 files changed

Lines changed: 37 additions & 37 deletions

File tree

src/Lucene.Net.Analysis.Common/Analysis/Hunspell/Stemmer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ internal IList<CharsRef> ApplyAffix(char[] strippedWord, int length, int affix,
632632
if (Dictionary.HasFlag(wordFlags, flag))
633633
{
634634
// confusing: in this one exception, we already chained the first prefix against the second,
635-
// so it doesnt need to be checked against the word
635+
// so it doesn't need to be checked against the word
636636
bool chainedPrefix = dictionary.complexPrefixes && recursionDepth == 1 && prefix;
637637
if (chainedPrefix == false && prefixFlag >= 0 && !Dictionary.HasFlag(wordFlags, (char)prefixFlag))
638638
{

src/Lucene.Net.Codecs/Memory/DirectDocValuesConsumer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private void AddBinaryFieldValues(FieldInfo field, IEnumerable<BytesRef> values)
248248
}
249249

250250
// TODO: in some cases representing missing with minValue-1 wouldn't take up additional space and so on,
251-
// but this is very simple, and algorithms only check this for values of 0 anyway (doesnt slow down normal decode)
251+
// but this is very simple, and algorithms only check this for values of 0 anyway (doesn't slow down normal decode)
252252
internal virtual void WriteMissingBitset<T1>(IEnumerable<T1> values)
253253
{
254254
long bits = 0;

src/Lucene.Net.Codecs/Memory/MemoryDocValuesConsumer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private void WriteFST(FieldInfo field, IEnumerable<BytesRef> values)
364364
}
365365

366366
// TODO: in some cases representing missing with minValue-1 wouldn't take up additional space and so on,
367-
// but this is very simple, and algorithms only check this for values of 0 anyway (doesnt slow down normal decode)
367+
// but this is very simple, and algorithms only check this for values of 0 anyway (doesn't slow down normal decode)
368368

369369
internal virtual void WriteMissingBitset<T1>(IEnumerable<T1> values)
370370
{

src/Lucene.Net.TestFramework/Codecs/Lucene40/Lucene40DocValuesWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public override void AddBinaryField(FieldInfo field, IEnumerable<BytesRef> value
176176
BytesRef b = value;
177177
if (b is null)
178178
{
179-
b = new BytesRef(); // 4.0 doesnt distinguish
179+
b = new BytesRef(); // 4.0 doesn't distinguish
180180
}
181181
if (b.Length > Lucene40DocValuesFormat.MAX_BINARY_FIELD_LENGTH)
182182
{

src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ public virtual void TestRandomSortedBytes()
11711171

11721172
if (!DefaultCodecSupportsDocsWithField)
11731173
{
1174-
// if the codec doesnt support missing, we expect missing to be mapped to byte[]
1174+
// if the codec doesn't support missing, we expect missing to be mapped to byte[]
11751175
// by the impersonator, but we have to give it a chance to merge them to this
11761176
cfg.SetMergePolicy(NewLogMergePolicy());
11771177
}
@@ -1213,7 +1213,7 @@ public virtual void TestRandomSortedBytes()
12131213
}
12141214
if (!DefaultCodecSupportsDocsWithField)
12151215
{
1216-
// if the codec doesnt support missing, we expect missing to be mapped to byte[]
1216+
// if the codec doesn't support missing, we expect missing to be mapped to byte[]
12171217
// by the impersonator, but we have to give it a chance to merge them to this
12181218
w.ForceMerge(1);
12191219
}

src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2370,7 +2370,7 @@ public bool Get(int index)
23702370

23712371
/// <summary>
23722372
/// Checks the terms enum sequentially.
2373-
/// If <paramref name="deep"/> is false, it does a 'shallow' test that doesnt go down to the docsenums.
2373+
/// If <paramref name="deep"/> is false, it does a 'shallow' test that doesn't go down to the docsenums.
23742374
/// </summary>
23752375
public virtual void AssertTermsEnumEquals(string info, IndexReader leftReader, TermsEnum leftTermsEnum, TermsEnum rightTermsEnum, bool deep)
23762376
{

src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static TestRandomChains()
133133
typeof(CommonGramsFilter),
134134
// TODO: doesn't handle graph inputs
135135
typeof(CommonGramsQueryFilter),
136-
// TODO: probably doesnt handle graph inputs, too afraid to try
136+
// TODO: probably doesn't handle graph inputs, too afraid to try
137137
typeof(WordDelimiterFilter) })
138138
{
139139
foreach (ConstructorInfo ctor in c.GetConstructors())

src/Lucene.Net.Tests.Analysis.Common/Analysis/El/TestGreekStemmer.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public virtual void TestFeminineNouns()
190190
public virtual void TestNeuterNouns()
191191
{
192192
// ending with -ο
193-
// note: nom doesnt conflate
193+
// note: nom doesn't conflate
194194
CheckOneTerm(a, "βιβλίο", "βιβλι");
195195
CheckOneTerm(a, "βιβλίου", "βιβλ");
196196
CheckOneTerm(a, "βιβλία", "βιβλ");
@@ -203,7 +203,7 @@ public virtual void TestNeuterNouns()
203203
CheckOneTerm(a, "πουλιών", "πουλ");
204204

205205
// ending with -α
206-
// note: nom. doesnt conflate
206+
// note: nom. doesn't conflate
207207
CheckOneTerm(a, "πρόβλημα", "προβλημ");
208208
CheckOneTerm(a, "προβλήματος", "προβλημα");
209209
CheckOneTerm(a, "προβλήματα", "προβλημα");
@@ -229,7 +229,7 @@ public virtual void TestNeuterNouns()
229229
CheckOneTerm(a, "βραδιών", "βραδ");
230230

231231
// ending with -υ/-ατος
232-
// note: nom. doesnt conflate
232+
// note: nom. doesn't conflate
233233
CheckOneTerm(a, "δόρυ", "δορ");
234234
CheckOneTerm(a, "δόρατος", "δορατ");
235235
CheckOneTerm(a, "δόρατα", "δορατ");
@@ -248,14 +248,14 @@ public virtual void TestNeuterNouns()
248248
CheckOneTerm(a, "λυκοφώτων", "λυκοφω");
249249

250250
// ending with -ον/-ου
251-
// note: nom. doesnt conflate
251+
// note: nom. doesn't conflate
252252
CheckOneTerm(a, "μέσον", "μεσον");
253253
CheckOneTerm(a, "μέσου", "μεσ");
254254
CheckOneTerm(a, "μέσα", "μεσ");
255255
CheckOneTerm(a, "μέσων", "μεσ");
256256

257257
// ending in -ον/-οντος
258-
// note: nom. doesnt conflate
258+
// note: nom. doesn't conflate
259259
CheckOneTerm(a, "ενδιαφέρον", "ενδιαφερον");
260260
CheckOneTerm(a, "ενδιαφέροντος", "ενδιαφεροντ");
261261
CheckOneTerm(a, "ενδιαφέροντα", "ενδιαφεροντ");
@@ -433,7 +433,7 @@ public virtual void TestVerbs()
433433
CheckOneTerm(a, "καλώντας", "καλ");
434434

435435
CheckOneTerm(a, "καλούμαι", "καλ");
436-
// pass. imperfect /imp. progressive doesnt conflate
436+
// pass. imperfect /imp. progressive doesn't conflate
437437
CheckOneTerm(a, "καλούμουν", "καλουμ");
438438
CheckOneTerm(a, "καλείσαι", "καλεισα");
439439

@@ -485,10 +485,10 @@ public virtual void TestVerbs()
485485

486486
CheckOneTerm(a, "κρατούμαι", "κρατ");
487487
CheckOneTerm(a, "κρατιέμαι", "κρατ");
488-
// this imperfect form doesnt conflate
488+
// this imperfect form doesn't conflate
489489
CheckOneTerm(a, "κρατούμουν", "κρατουμ");
490490
CheckOneTerm(a, "κρατιόμουν", "κρατ");
491-
// this imp. prog form doesnt conflate
491+
// this imp. prog form doesn't conflate
492492
CheckOneTerm(a, "κρατείσαι", "κρατεισα");
493493

494494
CheckOneTerm(a, "κρατήθηκα", "κρατ");

src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/Test64kAffixes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Lucene.Net.Analysis.Hunspell
2626
* limitations under the License.
2727
*/
2828

29-
// Tests that > 64k affixes actually works and doesnt overflow some internal int
29+
// Tests that > 64k affixes actually works and doesn't overflow some internal int
3030
public class Test64kAffixes : LuceneTestCase
3131
{
3232
[Test]

src/Lucene.Net.Tests.Analysis.Common/Analysis/Ru/TestRussianAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class TestRussianAnalyzer : BaseTokenStreamTestCase
3131
{
3232

3333
/// <summary>
34-
/// Check that RussianAnalyzer doesnt discard any numbers </summary>
34+
/// Check that RussianAnalyzer doesn't discard any numbers </summary>
3535
[Test]
3636
public virtual void TestDigitsInRussianCharset()
3737
{

0 commit comments

Comments
 (0)