Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines various sentence level combinators that may be based in English and
not necessarily have a conceptual link. See the Wiki
for more information. There are also C
variants to each combinator to
denote those meant for use at the start of a sentence (capitalizes the first word).
This module should be used as a qualified import (usually as S
),
as many function names clash with those in Concepts.hs and NounPhrase.hs.
Synopsis
- and_ :: Sentence -> Sentence -> Sentence
- andIts :: Sentence -> Sentence -> Sentence
- andThe :: Sentence -> Sentence -> Sentence
- fromThe :: Sentence -> Sentence -> Sentence
- inThe :: Sentence -> Sentence -> Sentence
- onThe :: Sentence -> Sentence -> Sentence
- toThe :: Sentence -> Sentence -> Sentence
- isThe :: Sentence -> Sentence -> Sentence
- ofThe :: Sentence -> Sentence -> Sentence
- the_ofThe :: Sentence -> Sentence -> Sentence
- the_ofTheC :: Sentence -> Sentence -> Sentence
- the_ofGiv :: Sentence -> Sentence -> Sentence
- the_ofGivC :: Sentence -> Sentence -> Sentence
- the_isExpctdToHvC :: Sentence -> Sentence -> Sentence
- forTPS :: (NamedIdea c, NamedIdea d) => c -> d -> Sentence
- forTPP :: (NamedIdea c, NamedIdea d) => c -> d -> Sentence
- for :: Sentence -> Sentence -> Sentence
- forT :: (NamedIdea c, NamedIdea d) => c -> d -> Sentence
- forGen :: (c -> Sentence) -> (d -> Sentence) -> c -> d -> Sentence
- of_ :: Sentence -> Sentence -> Sentence
- ofA :: Sentence -> Sentence -> Sentence
- or_ :: Sentence -> Sentence -> Sentence
- are :: Sentence -> Sentence -> Sentence
- in_ :: Sentence -> Sentence -> Sentence
- is :: Sentence -> Sentence -> Sentence
- defnAs :: Sentence -> Sentence -> Sentence
- denotes :: Sentence -> Sentence -> Sentence
- versus :: Sentence -> Sentence -> Sentence
- wrt :: Sentence -> Sentence -> Sentence
"And" Combinators
andIts :: Sentence -> Sentence -> Sentence Source #
Inserts the words "and its" between two Sentences.
andThe :: Sentence -> Sentence -> Sentence Source #
Inserts the words "and the" between two Sentences.
"The" Combinators
fromThe :: Sentence -> Sentence -> Sentence Source #
Inserts the words "from the" between two Sentences.
the_ofThe :: Sentence -> Sentence -> Sentence Source #
Same as ofThe
, but inserts "the" at the beginning of the Sentence.
the_ofTheC :: Sentence -> Sentence -> Sentence Source #
Same as the_ofThe
, except first "the" is capitalized.
the_ofGiv :: Sentence -> Sentence -> Sentence Source #
Prepends "the" and inserts "of a given" between two Sentences.
the_ofGivC :: Sentence -> Sentence -> Sentence Source #
Same as ofGiv
, except first "the" is capitalized.
the_isExpctdToHvC :: Sentence -> Sentence -> Sentence Source #
Prepends "The" and inserts "is expected to have" between two Sentences.
"For" Combinators
forTPP :: (NamedIdea c, NamedIdea d) => c -> d -> Sentence Source #
Similar to forTTPS
, but both NamedIdea
s are pluralized.
forGen :: (c -> Sentence) -> (d -> Sentence) -> c -> d -> Sentence Source #
Similar to forTT
, but takes two arguments (for capitalization or pluralization) to apply to the two terms respectively.
Other Combinators
defnAs :: Sentence -> Sentence -> Sentence Source #
Inserts the words "defined as" between two Sentences.