Skip to content

Commit 237aa84

Browse files
authored
misc: fix typos (apache#1281)
1 parent 9a1bf2e commit 237aa84

24 files changed

Lines changed: 24 additions & 33 deletions

File tree

.github/linters/codespell.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
abl
2-
absolut
32
acccount
43
accessability
54
accidently
@@ -10,7 +9,6 @@ adherance
109
administr
1110
adquire
1211
advices
13-
afer
1412
afile
1513
afte
1614
afterwords
@@ -21,7 +19,6 @@ alle
2119
allo
2220
allocte
2321
allong
24-
alocate
2522
alot
2623
alow
2724
alpha-numeric
@@ -38,7 +35,6 @@ anothers
3835
appropropriate
3936
apprpriate
4037
aquire
41-
arbitarily
4238
arent
4339
arguents
4440
assemblie
@@ -165,7 +161,6 @@ guerilla
165161
guiness
166162
hart
167163
hav
168-
havent
169164
heder
170165
hendler
171166
highligh
@@ -211,7 +206,6 @@ itsself
211206
kake
212207
ket
213208
lama
214-
lenght
215209
lief
216210
lien
217211
loner
@@ -235,9 +229,7 @@ meus
235229
millenium
236230
millepede
237231
mimicing
238-
mimick
239232
mimicks
240-
minimun
241233
mininum
242234
mis
243235
mot
@@ -272,7 +264,6 @@ ommitted
272264
ond
273265
ons
274266
ony
275-
oposite
276267
oppertunity
277268
ore
278269
oriente

src/Lucene.Net.Analysis.Common/Analysis/Br/BrazilianStemmer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ private bool Step2()
720720
return false;
721721
}
722722

723-
// suffix lenght = 7
723+
// suffix length = 7
724724
if (RV.Length >= 7)
725725
{
726726
if (Suffix(RV, "issemos"))

src/Lucene.Net.Analysis.Common/Analysis/Compound/Hyphenation/hyphenation.dtd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<!ELEMENT hyphen-char EMPTY>
2626
<!ATTLIST hyphen-char value CDATA #REQUIRED>
2727

28-
<!-- Default minimun length in characters of hyphenated word fragments
28+
<!-- Default minimum length in characters of hyphenated word fragments
2929
before and after the line break. For some languages this is not
3030
only for aesthetic purposes, wrong hyphens may be generated if this
3131
is not accounted for.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ private void ReadDictionaryFiles(IList<Stream> dictionaries, Encoding decoder, B
923923
continue;
924924
}
925925
line = UnescapeEntry(line);
926-
// if we havent seen any stem exceptions, try to parse one
926+
// if we haven't seen any stem exceptions, try to parse one
927927
if (hasStemExceptions == false)
928928
{
929929
int morphStart = line.IndexOf(MORPH_SEPARATOR);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public HunspellStemFilterFactory(IDictionary<string, string> args)
6464
affixFile = Get(args, PARAM_AFFIX);
6565
ignoreCase = GetBoolean(args, PARAM_IGNORE_CASE, false);
6666
longestOnly = GetBoolean(args, PARAM_LONGEST_ONLY, false);
67-
// this isnt necessary: we properly load all dictionaries.
67+
// this isn't necessary: we properly load all dictionaries.
6868
// but recognize and ignore for back compat
6969
GetBoolean(args, "strictAffixParsing", true);
7070
// this isn't necessary: multi-stage stripping is fixed and

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ private bool CheckCondition(int condition, char[] c1, int c1off, int c1len, char
601601
/// <param name="strippedWord"> Word the affix has been removed and the strip added </param>
602602
/// <param name="length"> valid length of stripped word </param>
603603
/// <param name="affix"> HunspellAffix representing the affix rule itself </param>
604-
/// <param name="prefixFlag"> when we already stripped a prefix, we cant simply recurse and check the suffix, unless both are compatible
604+
/// <param name="prefixFlag"> when we already stripped a prefix, we can't simply recurse and check the suffix, unless both are compatible
605605
/// so we must check dictionary form against both to add it as a stem! </param>
606606
/// <param name="recursionDepth"> current recursion depth </param>
607607
/// <param name="prefix"> true if we are removing a prefix (false if its a suffix) </param>

src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace Lucene.Net.Analysis.Path
5050
/// &lt;/fieldType&gt;
5151
/// </code>
5252
/// <para>
53-
/// In this example however we see the oposite configuration, so that a query
53+
/// In this example however we see the opposite configuration, so that a query
5454
/// for <c>Books/NonFic/Science/Physics</c> would match documents
5555
/// containing <c>Books/NonFic</c>, <c>Books/NonFic/Science</c>,
5656
/// or <c>Books/NonFic/Science/Physics</c>, but not

src/Lucene.Net.Analysis.Common/Analysis/Util/CharArraySet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ internal static CharArraySet CopySet<T>(LuceneVersion matchVersion, IEnumerable<
537537

538538
return new CharArraySet(matchVersion, collection.Select(text =>
539539
{
540-
// We cannot capture Span<T> from outside of the lambda, so we just re-alocate the
540+
// We cannot capture Span<T> from outside of the lambda, so we just re-allocate the
541541
// stack on every loop.
542542
var returnType = CharArrayDictionary.ConvertObjectToChars(text, out char[] chars, out string s);
543543
if (returnType == CharArrayDictionary.CharReturnType.String)

src/Lucene.Net.Analysis.Common/Analysis/Util/CharacterUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static CharacterUtils GetJava4Instance(LuceneVersion matchVersion) // LUC
124124
/// a character array </param>
125125
/// <param name="offset">
126126
/// the offset to the char values in the chars array to be converted </param>
127-
/// <param name="limit"> the index afer the last element that should be used to calculate
127+
/// <param name="limit"> the index after the last element that should be used to calculate
128128
/// codepoint.
129129
/// </param>
130130
/// <returns> the Unicode code point at the given index </returns>

src/Lucene.Net.Analysis.Common/Analysis/Util/RollingCharBuffer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void Reset(TextReader reader)
6565

6666
/// <summary>
6767
/// Absolute position read. NOTE: pos must not jump
68-
/// ahead by more than 1! Ie, it's OK to read arbitarily
68+
/// ahead by more than 1! Ie, it's OK to read arbitrarily
6969
/// far back (just not prior to the last <see cref="FreeBefore(int)"/>,
7070
/// but NOT ok to read arbitrarily far
7171
/// ahead. Returns -1 if you hit EOF.

0 commit comments

Comments
 (0)