Skip to content

Commit 36b57d5

Browse files
authored
misc: fix typos (apache#1266)
1 parent 84cc755 commit 36b57d5

18 files changed

Lines changed: 19 additions & 30 deletions

File tree

.github/linters/codespell.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,9 @@ coo
107107
corelate
108108
corespondent
109109
correcty
110-
correponding
111-
corrsponding
112110
corse
113111
couldnt
114112
countr
115-
couterpart
116-
coversion
117113
covert
118114
cunt
119115
curren
@@ -129,16 +125,11 @@ dependant
129125
despatch
130126
despatches
131127
detecing
132-
dicationary
133128
didnt
134-
differnetly
135129
diposing
136130
discreet
137131
discus
138132
displaing
139-
docuentation
140-
documenation
141-
documention
142133
doen
143134
doens't
144135
doesnt
@@ -407,8 +398,6 @@ sizin
407398
slippy
408399
som
409400
somme
410-
speacial
411-
specifc
412401
specifiy
413402
splitted
414403
statics

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ stages:
296296
displayName: 'Generate Documentation'
297297
298298
- task: ArchiveFiles@2
299-
displayName: 'Zip Documenation Files'
299+
displayName: 'Zip Documentation Files'
300300
inputs:
301301
rootFolderOrFile: '$(Build.SourcesDirectory)/websites/apidocs/_site'
302302
includeRootFolder: false

src/Lucene.Net.Analysis.Common/Analysis/In/IndicNormalizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Lucene.Net.Analysis.In
3333
/// </summary>
3434
public class IndicNormalizer
3535
{
36-
// LUCENENET NOTE: This class was refactored from its Java couterpart,
36+
// LUCENENET NOTE: This class was refactored from its Java counterpart,
3737
// favoring the .NET Regex class to determine the "Unicode Block" rather than
3838
// porting over that part of the Java Character class.
3939
// References:

src/Lucene.Net.Analysis.Kuromoji/Dict/BinaryDictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Lucene.Net.Analysis.Ja.Dict
3131
/// <summary>
3232
/// Base class for a binary-encoded in-memory dictionary.
3333
/// <para/>
34-
/// NOTE: To use an alternate dicationary than the built-in one, put the data files in a subdirectory of
34+
/// NOTE: To use an alternate dictionary than the built-in one, put the data files in a subdirectory of
3535
/// your application named "kuromoji-data". This subdirectory
3636
/// can be placed in any directory up to and including the root directory (if the OS permission allows).
3737
/// To place the files in an alternate location, set an environment variable named "kuromoji.data.dir"

src/Lucene.Net.Analysis.OpenNLP/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public class CustomOpenNLPAnalyzer : OpenNLPTokenizerFactory
115115
}
116116
```
117117

118-
In the above example, `CustomOpenNLPAnalyzer` extends `OpenNLPTokenizerFactory` (assuming that's the analyzer you're using), and it wraps the OpenNLP tokenizer with UIMA annotators. You'll need to replace the placeholder methods (`CreateUIMASentenceAnnotator` and `CreateUIMATokenAnnotator`) with the actual code to create and configure your UIMA annotators. Please note that configuring NLP can be complex. See the [OpenNLP 1.9.4 Manual](https://opennlp.apache.org/docs/1.9.4/manual/opennlp.html) and [OpenNLP UIMA 1.9.4 API Documention](https://opennlp.apache.org/docs/1.9.4/apidocs/opennlp-uima/index.html) for details.
118+
In the above example, `CustomOpenNLPAnalyzer` extends `OpenNLPTokenizerFactory` (assuming that's the analyzer you're using), and it wraps the OpenNLP tokenizer with UIMA annotators. You'll need to replace the placeholder methods (`CreateUIMASentenceAnnotator` and `CreateUIMATokenAnnotator`) with the actual code to create and configure your UIMA annotators. Please note that configuring NLP can be complex. See the [OpenNLP 1.9.4 Manual](https://opennlp.apache.org/docs/1.9.4/manual/opennlp.html) and [OpenNLP UIMA 1.9.4 API Documentation](https://opennlp.apache.org/docs/1.9.4/apidocs/opennlp-uima/index.html) for details.
119119

120120
> [!NOTE]
121121
> IKVM (and `<MavenReference>`) does not support Java SE higher than version 8. So it will not be possible to add a `<MavenReference>` to OpenNLP 2.x until support is added for it in IKVM.

src/Lucene.Net.Analysis.Phonetic/Language/StringEncoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public interface IStringEncoder
2828
/// </summary>
2929
/// <param name="source">the <see cref="string"/> to encode</param>
3030
/// <returns>the encoded <see cref="string"/></returns>
31-
// LUCENENET specific - EncoderException not ported, as it was only thrown on a coversion from object to string type
31+
// LUCENENET specific - EncoderException not ported, as it was only thrown on a conversion from object to string type
3232
// <exception cref="EncoderException">thrown if there is an error condition during the encoding process.</exception>
3333
string Encode(string source);
3434
}

src/Lucene.Net.Analysis.SmartCn/AnalyzerProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Lucene.Net.Analysis.Cn.Smart
2828
/// <para/>
2929
/// <see cref="SmartChineseAnalyzer"/> has a built-in dictionary and stopword list out-of-box.
3030
/// <para/>
31-
/// NOTE: To use an alternate dicationary than the built-in one, put the "bigramdict.dct" and
31+
/// NOTE: To use an alternate dictionary than the built-in one, put the "bigramdict.dct" and
3232
/// "coredict.dct" files in a subdirectory of your application named "smartcn-data". This subdirectory
3333
/// can be placed in any directory up to and including the root directory (if the OS permission allows).
3434
/// To place the files in an alternate location, set an environment variable named "smartcn.data.dir"

src/Lucene.Net.Highlighter/Highlight/WeightedSpanTermExtractor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ protected virtual void Extract(Query query, IDictionary<string, WeightedSpanTerm
222222
Query rewritten = origQuery.Rewrite(reader);
223223
if (rewritten != origQuery)
224224
{
225-
// only rewrite once and then flatten again - the rewritten query could have a speacial treatment
225+
// only rewrite once and then flatten again - the rewritten query could have a special treatment
226226
// if this method is overwritten in a subclass or above in the next recursion
227227
Extract(rewritten, terms);
228228
}

src/Lucene.Net.Highlighter/VectorHighlight/FieldQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ internal void Flatten(Query sourceQuery, IndexReader reader, ICollection<Query>
149149
Query rewritten = query.Rewrite(reader);
150150
if (rewritten != query)
151151
{
152-
// only rewrite once and then flatten again - the rewritten query could have a speacial treatment
152+
// only rewrite once and then flatten again - the rewritten query could have a special treatment
153153
// if this method is overwritten in a subclass.
154154
Flatten(rewritten, reader, flatQueries);
155155

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,9 +1308,9 @@ public static ISet<object> AsSet(params object[] args)
13081308
/// Convenience method for logging an enumerator.
13091309
/// </summary>
13101310
/// <param name="label"> String logged before/after the items in the enumerator. </param>
1311-
/// <param name="iter"> Each element is ToString()ed and logged on it's own line. If iter is null this is logged differnetly then an empty enumerator. </param>
1311+
/// <param name="iter"> Each element is ToString()ed and logged on it's own line. If iter is null this is logged differently then an empty enumerator. </param>
13121312
/// <param name="stream"> Stream to log messages to. </param>
1313-
public static void DumpEnumerator(string label, IEnumerator iter, TextWriter stream) // LUCENENET specifc - renamed from DumpIterator
1313+
public static void DumpEnumerator(string label, IEnumerator iter, TextWriter stream) // LUCENENET specific - renamed from DumpIterator
13141314
{
13151315
stream.WriteLine("*** BEGIN " + label + " ***");
13161316
if (null == iter)

0 commit comments

Comments
 (0)