Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the common idea type and respective constructors.
Synopsis
- data CI
- commonIdea :: String -> NP -> String -> [UID] -> CI
- commonIdeaWithDict :: String -> NP -> String -> [IdeaDict] -> CI
- getAcc :: CI -> Sentence
- prependAbrv :: CommonIdea c => c -> String -> String
Common Idea datatype
The common idea (with NounPhrase
) data type. It must have a UID
,
NounPhrase
for its term, an abbreviation (String
), and a domain ([UID
]).
It is similar to IdeaDict
and IdeaDict
in the sense that these are for things worth naming,
but this type also carries an abbreviation and related domains of knowledge.
Ex. The term "Operating System" has the abbreviation OS and comes from the domain of computer science.
Constructors
commonIdeaWithDict :: String -> NP -> String -> [IdeaDict] -> CI Source #
Similar to commonIdea
, but takes a list of IdeaDict
(often a domain).
Functions
prependAbrv :: CommonIdea c => c -> String -> String Source #
Prepends the abbreviation from a CommonIdea
to a String
.