gnu: Add Snowball-Norwegian.
[jackhill/guix/guix.git] / gnu / packages / language.scm
CommitLineData
fc436dba
EB
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages language)
20 #:use-module (gnu packages)
21 #:use-module (gnu packages perl)
22 #:use-module (guix packages)
23 #:use-module (guix build-system perl)
30c40044 24 #:use-module ((guix licenses) #:select (gpl2))
fc436dba
EB
25 #:use-module (guix download))
26
0c32bf01
EB
27(define-public perl-lingua-en-findnumber
28 (package
29 (name "perl-lingua-en-findnumber")
30 (version "1.30")
31 (source
32 (origin
33 (method url-fetch)
34 (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/"
35 "Lingua-EN-FindNumber-" version ".tar.gz"))
36 (sha256
37 (base32
38 "0g5h6bwwggizwh3dd3xyx92537s4qy8nspshp1lrm9qlxh3prc28"))))
39 (build-system perl-build-system)
40 (propagated-inputs
41 `(("perl-lingua-en-words2nums" ,perl-lingua-en-words2nums)))
42 (home-page "http://search.cpan.org/dist/Lingua-EN-FindNumber")
43 (synopsis "Locate (written) numbers in English text ")
44 (description "This module provides a regular expression for finding
45numbers in English text. It also provides functions for extracting and
46manipulating such numbers.")
47 (license (package-license perl))))
48
57ff0e04
EB
49(define-public perl-lingua-en-inflect
50 (package
51 (name "perl-lingua-en-inflect")
52 (version "1.895")
53 (source
54 (origin
55 (method url-fetch)
56 (uri (string-append "mirror://cpan/authors/id/D/DC/DCONWAY/"
57 "Lingua-EN-Inflect-" version ".tar.gz"))
58 (sha256
59 (base32
60 "0drzg9a2dkjxgf00n6jg0jzhd8972bh3j4wdnmdxpqi3zmfqhwcy"))))
61 (build-system perl-build-system)
62 (home-page "http://search.cpan.org/dist/Lingua-EN-Inflect")
63 (synopsis "Convert singular to plural")
64 (description "Lingua::EN::Inflect provides plural inflections,
65\"a\"/\"an\" selection for English words, and manipulation of numbers as
66words. Plural forms of all nouns, most verbs, and some adjectives are
67provided. Where appropriate, \"classical\" variants (for example: \"brother\"
68-> \"brethren\", \"dogma\" -> \"dogmata\", etc.) are also provided.")
69 (license (package-license perl))))
70
4812a813
EB
71(define-public perl-lingua-en-inflect-number
72 (package
73 (name "perl-lingua-en-inflect-number")
74 (version "1.11")
75 (source
76 (origin
77 (method url-fetch)
78 (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/"
79 "Lingua-EN-Inflect-Number-" version ".tar.gz"))
80 (sha256
81 (base32
82 "0rvgrff96ja7fqr79dszmiyv2wz4izw82znah0mx9szkir657gfz"))))
83 (build-system perl-build-system)
84 (propagated-inputs
85 `(("perl-lingua-en-inflect" ,perl-lingua-en-inflect)))
86 (home-page "http://search.cpan.org/dist/Lingua-EN-Inflect-Number")
87 (synopsis "Force number of words to singular or plural")
88 (description "This module extends the functionality of Lingua::EN::Inflect
89with three new functions for determining plurality of a word and forcefully
90converting a word to singular or plural.")
91 (license (package-license perl))))
92
930768b3
EB
93(define-public perl-lingua-en-number-isordinal
94 (package
95 (name "perl-lingua-en-number-isordinal")
96 (version "0.04")
97 (source
98 (origin
99 (method url-fetch)
100 (uri (string-append "mirror://cpan/authors/id/R/RK/RKITOVER/"
101 "Lingua-EN-Number-IsOrdinal-" version ".tar.gz"))
102 (sha256
103 (base32
104 "1321fm4pyqcamffd0qsjm1gb07ijqndlb29qkcqf22kaibngfm4i"))))
105 (build-system perl-build-system)
106 (native-inputs
107 `(("perl-try-tiny" ,perl-try-tiny)
108 ("perl-test-fatal" ,perl-test-fatal)))
109 (propagated-inputs
110 `(("perl-lingua-en-findnumber" ,perl-lingua-en-findnumber)))
111 (home-page "http://search.cpan.org/dist/Lingua-EN-Number-IsOrdinal")
112 (synopsis "Detect if English number is ordinal or cardinal")
113 (description "This module will tell you if a number, either in words or as
114digits, is a cardinal or ordinal number.")
115 (license (package-license perl))))
116
fc436dba
EB
117(define-public perl-lingua-en-words2nums
118 (package
119 (name "perl-lingua-en-words2nums")
120 (version "0.18")
121 (source
122 (origin
123 (method url-fetch)
124 (uri (string-append "mirror://cpan/authors/id/J/JO/JOEY/"
125 "Lingua-EN-Words2Nums-" version ".tar.gz"))
126 (sha256
127 (base32
128 "118xx8qr1zbx30psv7ic55w65h15mc1vz6zicshfm96jgiwmcrb8"))))
129 (build-system perl-build-system)
130 (home-page "http://search.cpan.org/dist/Lingua-EN-Words2Nums")
131 (synopsis "Convert English text to numbers")
132 (description "This module converts English text into numbers. It supports
133both ordinal and cardinal numbers, negative numbers, and very large numbers.")
134 (license (package-license perl))))
9b446711
EB
135
136(define-public perl-lingua-pt-stemmer
137 (package
138 (name "perl-lingua-pt-stemmer")
139 (version "0.01")
140 (source
141 (origin
142 (method url-fetch)
143 (uri (string-append "mirror://cpan/authors/id/X/XE/XERN/"
144 "Lingua-PT-Stemmer-" version ".tar.gz"))
145 (sha256
146 (base32
147 "11rqc5pqnkl9c13vy7sihiyas14ci0pj3k6chrgrgjv5sjv2m4a5"))))
148 (build-system perl-build-system)
149 (home-page "http://search.cpan.org/dist/Lingua-PT-Stemmer")
150 (synopsis "Portuguese language stemming")
151 (description "This module implements a Portuguese stemming algorithm
152proposed in the paper A Stemming Algorithm for the Portuguese Language by
153Moreira, V. and Huyck, C.")
154 (license (package-license perl))))
df11e052
EB
155
156(define-public perl-lingua-stem-fr
157 (package
158 (name "perl-lingua-stem-fr")
159 (version "0.02")
160 (source
161 (origin
162 (method url-fetch)
163 (uri (string-append "mirror://cpan/authors/id/S/SD/SDP/"
164 "Lingua-Stem-Fr-" version ".tar.gz"))
165 (sha256
166 (base32
167 "0vyrspwzaqjxm5mqshf4wvwa3938mkajd1918d9ii2l9m2rn8kwx"))))
168 (build-system perl-build-system)
169 (home-page "http://search.cpan.org/dist/Lingua-Stem-Fr")
170 (synopsis "Porter's stemming algorithm for French")
171 (description "This module uses a modified version of the Porter Stemming
172Algorithm to return a stemmed French word.")
173 (license (package-license perl))))
6afe5959
EB
174
175(define-public perl-lingua-stem-it
176 (package
177 (name "perl-lingua-stem-it")
178 (version "0.02")
179 (source
180 (origin
181 (method url-fetch)
182 (uri (string-append "mirror://cpan/authors/id/A/AC/ACALPINI/"
183 "Lingua-Stem-It-" version ".tar.gz"))
184 (sha256
185 (base32
186 "1207r183s5hlh4mfwa6p46vzm0dhvrs2dnss5s41a0gyfkxp7riq"))))
187 (build-system perl-build-system)
188 (home-page "http://search.cpan.org/dist/Lingua-Stem-It")
189 (synopsis "Porter's stemming algorithm for Italian")
190 (description "This module applies the Porter Stemming Algorithm to its
191parameters, returning the stemmed Italian word.")
192 (license (package-license perl))))
95d2eec1
EB
193
194(define-public perl-lingua-stem-ru
195 (package
196 (name "perl-lingua-stem-ru")
197 (version "0.01")
198 (source
199 (origin
200 (method url-fetch)
201 (uri (string-append "mirror://cpan/authors/id/A/AL/ALGDR/"
202 "Lingua-Stem-Ru-" version ".tar.gz"))
203 (sha256
204 (base32
205 "0pqgg442fkf12ayh9fgmpa8q9x0iqx6s96181r52yn7s7pcs61h6"))))
206 (build-system perl-build-system)
207 (home-page "http://search.cpan.org/dist/Lingua-Stem-Ru")
208 (synopsis "Porter's stemming algorithm for Russian")
209 (description "This module applies the Porter Stemming Algorithm to its
210parameters, returning the stemmed Russian (KOI8-R only) word.")
211 (license (package-license perl))))
30c40044
EB
212
213(define-public perl-lingua-stem-snowball-da
214 (package
215 (name "perl-lingua-stem-snowball-da")
216 (version "1.01")
217 (source
218 (origin
219 (method url-fetch)
220 (uri (string-append "mirror://cpan/authors/id/C/CI/CINE/"
221 "Lingua-Stem-Snowball-Da-" version ".tar.gz"))
222 (sha256
223 (base32
224 "0mm0m7glm1s6i9f6a78jslw6wh573208arxhq93yriqmw17bwf9f"))))
225 (build-system perl-build-system)
226 (home-page "http://search.cpan.org/dist/Lingua-Stem-Snowball-Da")
227 (synopsis "Porters stemming algorithm for Danish")
228 (description "Lingua::Stem::Snowball::Da is a perl port of the danish
229stemmer at http://snowball.sourceforge.net, it was originally altered from the
230Lingua::Stem::Snowball::Se.")
231 (license gpl2)))
1064abdc
EB
232
233(define-public perl-snowball-norwegian
234 (package
235 (name "perl-snowball-norwegian")
236 (version "1.2")
237 (source
238 (origin
239 (method url-fetch)
240 (uri (string-append "mirror://cpan/authors/id/A/AS/ASKSH/"
241 "Snowball-Norwegian-" version ".tar.gz"))
242 (sha256
243 (base32
244 "0675v45bbsh7vr7kpf36xs2q79g02iq1kmfw22h20xdk4rzqvkqx"))))
245 (build-system perl-build-system)
246 (home-page "http://search.cpan.org/dist/Snowball-Norwegian")
247 (synopsis "Porters stemming algorithm for Norwegian")
248 (description "Lingua::Stem::Snowball::No is a perl port of the norwegian
249stemmer at http://snowball.tartarus.org.")
250 (license (package-license perl))))