Debian Codegraph @

importers/ding2tei/src/Data/NatLang/InflectedForms.hs

raw symbols SCIP
1 {-
2 - Data/NatLang/InflectedForms.hs - information on inflected forms
3 -
4 - Copyright 2020 Einhard Leichtfuß
5 -
6 - This file is part of ding2tei-haskell.
7 -
8 - ding2tei-haskell is free software: you can redistribute it and/or modify
9 - it under the terms of the GNU Affero General Public License as published
10 - by the Free Software Foundation, either version 3 of the License, or
11 - (at your option) any later version.
12 -
13 - ding2tei-haskell is distributed in the hope that it will be useful,
14 - but WITHOUT ANY WARRANTY; without even the implied warranty of
15 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 - GNU Affero General Public License for more details.
17 -
18 - You should have received a copy of the GNU Affero General Public License
19 - along with ding2tei-haskell. If not, see <https://www.gnu.org/licenses/>.
20 -}
21
22
23 {-|
24 - Data types for inflected forms, as they appear in the Ding dictionary and
25 - may be (partially) represented in TEI.
26 -}
27 module Data.NatLang.InflectedForms
28 ( InflectedForms(..)
29 , InflectedForm(..)
30 ) where
31
32
33 import Data.List.NonEmpty (NonEmpty)
34
35 import Data.NatLang.Usage (Usage)
36
37
38 -- | Two inflected forms of a word. This is meant to be used for the English
39 -- language's simple past and past participle of a verb.
40 data InflectedForms
41 = InflectedForms
42 (NonEmpty InflectedForm) -- ^ simple past
43 (NonEmpty InflectedForm) -- ^ past participle
44 deriving (Show, Eq, Ord)
45
46
47 -- | A single inflected form, annotated with usages.
48 -- Note that these usages cannot be specified in TEI, or at least it is
49 -- unknown how.
50 data InflectedForm = InflectedForm String [Usage]
51 deriving (Show, Eq, Ord)
52
53
54 -- vi: ft=haskell ts=2 sw=2 et