gnu: Add Lingua-Stem-Fr.
[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)
24 #:use-module (guix download))
25
0c32bf01
EB
26(define-public perl-lingua-en-findnumber
27 (package
28 (name "perl-lingua-en-findnumber")
29 (version "1.30")
30 (source
31 (origin
32 (method url-fetch)
33 (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/"
34 "Lingua-EN-FindNumber-" version ".tar.gz"))
35 (sha256
36 (base32
37 "0g5h6bwwggizwh3dd3xyx92537s4qy8nspshp1lrm9qlxh3prc28"))))
38 (build-system perl-build-system)
39 (propagated-inputs
40 `(("perl-lingua-en-words2nums" ,perl-lingua-en-words2nums)))
41 (home-page "http://search.cpan.org/dist/Lingua-EN-FindNumber")
42 (synopsis "Locate (written) numbers in English text ")
43 (description "This module provides a regular expression for finding
44numbers in English text. It also provides functions for extracting and
45manipulating such numbers.")
46 (license (package-license perl))))
47
57ff0e04
EB
48(define-public perl-lingua-en-inflect
49 (package
50 (name "perl-lingua-en-inflect")
51 (version "1.895")
52 (source
53 (origin
54 (method url-fetch)
55 (uri (string-append "mirror://cpan/authors/id/D/DC/DCONWAY/"
56 "Lingua-EN-Inflect-" version ".tar.gz"))
57 (sha256
58 (base32
59 "0drzg9a2dkjxgf00n6jg0jzhd8972bh3j4wdnmdxpqi3zmfqhwcy"))))
60 (build-system perl-build-system)
61 (home-page "http://search.cpan.org/dist/Lingua-EN-Inflect")
62 (synopsis "Convert singular to plural")
63 (description "Lingua::EN::Inflect provides plural inflections,
64\"a\"/\"an\" selection for English words, and manipulation of numbers as
65words. Plural forms of all nouns, most verbs, and some adjectives are
66provided. Where appropriate, \"classical\" variants (for example: \"brother\"
67-> \"brethren\", \"dogma\" -> \"dogmata\", etc.) are also provided.")
68 (license (package-license perl))))
69
4812a813
EB
70(define-public perl-lingua-en-inflect-number
71 (package
72 (name "perl-lingua-en-inflect-number")
73 (version "1.11")
74 (source
75 (origin
76 (method url-fetch)
77 (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/"
78 "Lingua-EN-Inflect-Number-" version ".tar.gz"))
79 (sha256
80 (base32
81 "0rvgrff96ja7fqr79dszmiyv2wz4izw82znah0mx9szkir657gfz"))))
82 (build-system perl-build-system)
83 (propagated-inputs
84 `(("perl-lingua-en-inflect" ,perl-lingua-en-inflect)))
85 (home-page "http://search.cpan.org/dist/Lingua-EN-Inflect-Number")
86 (synopsis "Force number of words to singular or plural")
87 (description "This module extends the functionality of Lingua::EN::Inflect
88with three new functions for determining plurality of a word and forcefully
89converting a word to singular or plural.")
90 (license (package-license perl))))
91
930768b3
EB
92(define-public perl-lingua-en-number-isordinal
93 (package
94 (name "perl-lingua-en-number-isordinal")
95 (version "0.04")
96 (source
97 (origin
98 (method url-fetch)
99 (uri (string-append "mirror://cpan/authors/id/R/RK/RKITOVER/"
100 "Lingua-EN-Number-IsOrdinal-" version ".tar.gz"))
101 (sha256
102 (base32
103 "1321fm4pyqcamffd0qsjm1gb07ijqndlb29qkcqf22kaibngfm4i"))))
104 (build-system perl-build-system)
105 (native-inputs
106 `(("perl-try-tiny" ,perl-try-tiny)
107 ("perl-test-fatal" ,perl-test-fatal)))
108 (propagated-inputs
109 `(("perl-lingua-en-findnumber" ,perl-lingua-en-findnumber)))
110 (home-page "http://search.cpan.org/dist/Lingua-EN-Number-IsOrdinal")
111 (synopsis "Detect if English number is ordinal or cardinal")
112 (description "This module will tell you if a number, either in words or as
113digits, is a cardinal or ordinal number.")
114 (license (package-license perl))))
115
fc436dba
EB
116(define-public perl-lingua-en-words2nums
117 (package
118 (name "perl-lingua-en-words2nums")
119 (version "0.18")
120 (source
121 (origin
122 (method url-fetch)
123 (uri (string-append "mirror://cpan/authors/id/J/JO/JOEY/"
124 "Lingua-EN-Words2Nums-" version ".tar.gz"))
125 (sha256
126 (base32
127 "118xx8qr1zbx30psv7ic55w65h15mc1vz6zicshfm96jgiwmcrb8"))))
128 (build-system perl-build-system)
129 (home-page "http://search.cpan.org/dist/Lingua-EN-Words2Nums")
130 (synopsis "Convert English text to numbers")
131 (description "This module converts English text into numbers. It supports
132both ordinal and cardinal numbers, negative numbers, and very large numbers.")
133 (license (package-license perl))))
9b446711
EB
134
135(define-public perl-lingua-pt-stemmer
136 (package
137 (name "perl-lingua-pt-stemmer")
138 (version "0.01")
139 (source
140 (origin
141 (method url-fetch)
142 (uri (string-append "mirror://cpan/authors/id/X/XE/XERN/"
143 "Lingua-PT-Stemmer-" version ".tar.gz"))
144 (sha256
145 (base32
146 "11rqc5pqnkl9c13vy7sihiyas14ci0pj3k6chrgrgjv5sjv2m4a5"))))
147 (build-system perl-build-system)
148 (home-page "http://search.cpan.org/dist/Lingua-PT-Stemmer")
149 (synopsis "Portuguese language stemming")
150 (description "This module implements a Portuguese stemming algorithm
151proposed in the paper A Stemming Algorithm for the Portuguese Language by
152Moreira, V. and Huyck, C.")
153 (license (package-license perl))))
df11e052
EB
154
155(define-public perl-lingua-stem-fr
156 (package
157 (name "perl-lingua-stem-fr")
158 (version "0.02")
159 (source
160 (origin
161 (method url-fetch)
162 (uri (string-append "mirror://cpan/authors/id/S/SD/SDP/"
163 "Lingua-Stem-Fr-" version ".tar.gz"))
164 (sha256
165 (base32
166 "0vyrspwzaqjxm5mqshf4wvwa3938mkajd1918d9ii2l9m2rn8kwx"))))
167 (build-system perl-build-system)
168 (home-page "http://search.cpan.org/dist/Lingua-Stem-Fr")
169 (synopsis "Porter's stemming algorithm for French")
170 (description "This module uses a modified version of the Porter Stemming
171Algorithm to return a stemmed French word.")
172 (license (package-license perl))))