guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 86f1576c9e8f29a3bd5955906cff72475249149d
Author: Arun Isaac <[email protected]>
AuthorDate: Sun Feb 8 21:12:00 2026 +0000

    gnu: Add go-github-com-blevesearch-snowballstem.
    
    * gnu/packages/golang-xyz.scm (go-github-com-blevesearch-snowballstem): New
    variable.
    
    Change-Id: I2a85558ac7400ad2352d2db2efea38bebdb1965e
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 6678ee33d0..2f244b971f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3405,6 +3405,37 @@ processing.  It's an alternative fork of
 @url{https://github.com/kljensen/snowball}.";)
     (license license:expat)))
 
+(define-public go-github-com-blevesearch-snowballstem
+  (package
+    (name "go-github-com-blevesearch-snowballstem")
+    (version "0.9.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/blevesearch/snowballstem";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1yzglihjjn588xmmkaawqhc95pkk1cyc4bq7ipw7jqfw2np1f2rm"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/blevesearch/snowballstem"))
+    (home-page "https://github.com/blevesearch/snowballstem";)
+    (synopsis "Go stemmers generated by the Snowball project")
+    (description
+     "This package provides Go stemmers generated by the
+@url{https://github.com/snowballstem/snowball, Snowball} project.
+
+All these stemmers export a single @code{Stem()} method which operates on a
+snowball @code{Env} structure.  The @code{Env} structure maintains all state
+for the stemmer.  A new Env is created to point at an initial string.  After
+stemming, the results of the @code{Stem()} operation can be retrieved using
+the @code{Current()} method.  The @code{Env} structure can be reused for
+subsequent calls by using the @code{SetCurrent()} method.")
+    (license license:bsd-3)))
+
 (define-public go-github-com-bmatcuk-doublestar
   (package
     (name "go-github-com-bmatcuk-doublestar")

Reply via email to