@@ -51,15 +51,15 @@ public class JaroWinkler : INormalizedStringSimilarity, INormalizedStringDistanc
5151 /// The current value of the threshold used for adding the Winkler bonus. The default value is 0.7.
5252 /// </summary>
5353 private double Threshold { get ; }
54-
54+
5555 /// <summary>
5656 /// Creates a new instance with default threshold (0.7)
5757 /// </summary>
5858 public JaroWinkler ( )
5959 {
6060 Threshold = DEFAULT_THRESHOLD ;
6161 }
62-
62+
6363 /// <summary>
6464 /// Creates a new instance with given threshold to determine when Winkler bonus should
6565 /// be used. Set threshold to a negative value to get the Jaro distance.
@@ -79,7 +79,7 @@ public JaroWinkler(double threshold)
7979 /// <exception cref="ArgumentNullException">If s1 or s2 is null.</exception>
8080 public double Similarity ( string s1 , string s2 )
8181 => Similarity ( s1 . AsSpan ( ) , s2 . AsSpan ( ) ) ;
82-
82+
8383 /// <summary>
8484 /// Calculates the similarity between two sequences using the Jaro-Winkler distance metric.
8585 /// </summary>
@@ -97,7 +97,7 @@ public double Similarity<T>(ReadOnlySpan<T> s1, ReadOnlySpan<T> s2)
9797 {
9898 if ( s1 == null )
9999 {
100- throw new ArgumentNullException ( nameof ( s1 ) ) ;
100+ throw new ArgumentNullException ( nameof ( s1 ) ) ;
101101 }
102102
103103 if ( s2 == null )
@@ -136,7 +136,7 @@ public double Similarity<T>(ReadOnlySpan<T> s1, ReadOnlySpan<T> s2)
136136 /// <exception cref="ArgumentNullException">If s1 or s2 is null.</exception>
137137 public double Distance ( string s1 , string s2 )
138138 => 1.0 - Similarity ( s1 , s2 ) ;
139-
139+
140140 /// <summary>
141141 /// Calculates the distance between two sequences based on their similarity.
142142 /// </summary>
@@ -145,7 +145,7 @@ public double Distance(string s1, string s2)
145145 /// <typeparam name="T">The type of elements in the sequences. Must implement <see cref="IEquatable{T}"/>.</typeparam>
146146 /// <param name="s1">The first sequence to compare.</param>
147147 /// <param name="s2">The second sequence to compare.</param>
148- /// <returns>A double value representing the distance between the two sequences. The value ranges from 0.0 to 1.0, where
148+ /// <returns>A double value representing the distance between the two sequences. The value ranges from 0.0 to 1.0, where
149149 /// 0.0 indicates identical sequences and 1.0 indicates completely dissimilar sequences.</returns>
150150 public double Distance < T > ( ReadOnlySpan < T > s1 , ReadOnlySpan < T > s2 )
151151 where T : IEquatable < T >
0 commit comments