This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-dev-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 0ef7e63 2025/01/19 00:19:20: Generated dev website from
groovy-website@8d8c781
0ef7e63 is described below
commit 0ef7e63b2a6090e08a267bd26fdae831a16dd89c
Author: jenkins <[email protected]>
AuthorDate: Sun Jan 19 00:19:20 2025 +0000
2025/01/19 00:19:20: Generated dev website from groovy-website@8d8c781
---
blog/groovy-text-similarity.html | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/blog/groovy-text-similarity.html b/blog/groovy-text-similarity.html
index e850ff7..41b67bb 100644
--- a/blog/groovy-text-similarity.html
+++ b/blog/groovy-text-similarity.html
@@ -57,7 +57,11 @@
<h2 id="_introduction">Introduction</h2>
<div class="sectionbody">
<div class="paragraph">
-<p>String similarity helps answer questions like:</p>
+<p>String similarity tries to answer the question: is one word
+(or phrase, sentence, paragraph, document) the same as another.
+This is an important capability in many scenarios involving searching
+or asking questions or invoking commands.
+It can help answer questions like:</p>
</div>
<div class="ulist">
<ul>
@@ -81,13 +85,29 @@
</li>
</ul>
</div>
+<div class="paragraph">
+<p>Very simple cases can typically be explicitly catered for by hand, e.g.
+using String library methods or regular expressions:</p>
+</div>
+<div class="listingblock groovy">
+<div class="content">
+<pre class="prettyprint highlight"><code>assert 'Cat'.equalsIgnoreCase('cat')
+
+assert ['color', 'Colour'].every { it =~ '[Cc]olou?r' }</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Handling cases explicitly like this soon becomes tedious.
+We’ll look at some libraries which can help us handle comparisons
+in more general ways.</p>
+</div>
</div>
</div>
<div class="sect1">
<h2 id="_simple_comparisons">Simple comparisons</h2>
<div class="sectionbody">
<div class="paragraph">
-<p>Examines three libraries for performing similarity matching:</p>
+<p>First, we’ll examine three libraries for performing similarity
matching:</p>
</div>
<div class="ulist">
<ul>