language-parser-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Database.Language

Synopsis

Documentation

addLang Source #

Arguments

:: MonadIO m 
=> LanguageName

LanguageName

-> AppT m (Key Language)

Key Language if inserted succsesfully

The addLang function inserts new language.

>>> runSQLAction $ addLang 'Khuzdûl'
LanguageKey {unLanguageKey = SqlBackendKey {unSqlBackendKey = 19950}}

combineWord Source #

Arguments

:: MonadIO m 
=> WordText

Result of combinations. Must be done manually.

-> PartOfSpeech

PartOfSpeech of the resulting word

-> LanguageName

LanguageName of the resulting word

-> [Int64]

Word's IDs from which it's combined.

-> AppT m (Maybe (Key Word)) 

The combineWord function inserts result of combining other words from any language.

/ kʷiliati / [v.] ( 19240 ) from Queran
>>> runSQLAction $ combineWord "kʷilissa" Noun Queran [19240, 19300]
Just (WordKey {unWordKey = SqlBackendKey {unSqlBackendKey = 19310}})