Skip to content

Commit abd50a6

Browse files
author
Jim (Dimitrios) Andrakakis
committed
Added tests, dev docs and README with examples.
1 parent 5ae7c26 commit abd50a6

File tree

2 files changed

+6
-83
lines changed

2 files changed

+6
-83
lines changed

Dandraka.FuzzySubstringSearch/Dandraka.FuzzySubstringSearch.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<PropertyGroup>
99
<PackageId>Dandraka.FuzzySubstringSearch</PackageId>
10-
<Version>1.0.5</Version>
10+
<Version>1.0.6</Version>
1111
<Authors>Jim (Dimitrios) Andrakakis</Authors>
1212
<Company>dandraka.com</Company>
1313
<Copyright>Copyright (c) 2024 Jim (Dimitrios) Andrakakis</Copyright>
@@ -17,7 +17,7 @@
1717
<PackageReadmeFile>README.md</PackageReadmeFile>
1818
<PackageProjectUrl>https://github.com/dandraka/FuzzySubstringSearch</PackageProjectUrl>
1919
<RepositoryUrl>https://github.com/dandraka/FuzzySubstringSearch/</RepositoryUrl>
20-
<PackageReleaseNotes>Added tests and README with examples.</PackageReleaseNotes>
20+
<PackageReleaseNotes>Added tests, dev docs and README with examples.</PackageReleaseNotes>
2121
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2222
<PackageTags>string text search substring fuzzy n-grams ngrams bigrams trigrams</PackageTags>
2323
<PackageIcon>icon.png</PackageIcon>

README.md

+4-81
Original file line numberDiff line numberDiff line change
@@ -59,87 +59,10 @@ When sequential is false this restriction does not apply:
5959

6060
So the result is 2 matches / 3 total = 67%.
6161

62-
# Dandraka.FuzzySubstringSearch assembly
62+
## Downloading
6363

64-
## Dandraka.FuzzySubstringSearch namespace
64+
Please download the Nuget package [here](https://www.nuget.org/packages/Dandraka.FuzzySubstringSearch).
6565

66-
| public type | description |
67-
| --- | --- |
68-
| class [LookingGlass] | N-gram case-insensitive text search. |
69-
70-
# LookingGlass class
71-
72-
N-gram case-insensitive text search.
73-
74-
```csharp
75-
public class LookingGlass
76-
```
77-
78-
## Public Members
79-
80-
| name | description |
81-
| --- | --- |
82-
| [LookingGlass] | Creates a LookingGlass instance with sequential search. |
83-
| [LookingGlass] | Creates a LookingGlass instance. |
84-
| [NGram] | Performs an N-gram case-insensitive search. |
85-
86-
## See Also
87-
88-
* namespace [Dandraka.FuzzySubstringSearch]
89-
90-
# LookingGlass constructor
91-
92-
Creates a LookingGlass instance with sequential search.
93-
94-
```csharp
95-
public LookingGlass()
96-
```
97-
98-
## See Also
99-
100-
* class [LookingGlass]
101-
* namespace [Dandraka.FuzzySubstringSearch]
102-
103-
---
104-
105-
# LookingGlass constructor
106-
107-
Creates a LookingGlass instance.
108-
109-
```csharp
110-
public LookingGlass(bool isSequential)
111-
```
112-
113-
| parameter | description |
114-
| --- | --- |
115-
| isSequential | Defines if search is limited to sequencial mode. |
116-
117-
## See Also
118-
119-
* class [LookingGlass]
120-
* namespace [Dandraka.FuzzySubstringSearch]
121-
122-
# LookingGlass.NGram method
123-
124-
Performs an N-gram case-insensitive search.
125-
126-
```csharp
127-
public int NGram(string TargetString, string SearchString, int NGramSize)
128-
```
129-
130-
| parameter | description |
131-
| --- | --- |
132-
| TargetString | The string in which search is being performed. Must not be null or empty. |
133-
| SearchString | The string sought within the target string. Must not be null or empty. |
134-
| NGramSize | The n-gram size, usually 2 or 3. Default is 3. Must be less or equal than the minimum of TargetString and SearchString length. |
135-
136-
## Return Value
137-
138-
An integer number between 0 and 100.
139-
Zero means that no part of the search string was found.
140-
100 means that the search string was found verbatim.
141-
142-
## See Also
66+
## Development documentation
14367

144-
* class [LookingGlass]
145-
* namespace [Dandraka.FuzzySubstringSearch]
68+
Please refer to the generated docs [here](https://github.com/dandraka/FuzzySubstringSearch/blob/main/docs/Dandraka.FuzzySubstringSearch.md).

0 commit comments

Comments
 (0)