dictionaries-0.2.0: Tools to handle StarDict dictionaries.

Copyright(c) 2016 Al Zohali
LicenseBSD3
MaintainerAl Zohali <zohl@fmap.me>
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

NLP.Dictionary.StarDict

Description

Description

Tools for StarDict dictionaries. This module (re)exports core classes that are needed to work with dictionaries. To create dictionary, use mkDictionary method together with tag from one of implementations:

   import NLP.Dictionary.StarDict (StarDict(..))
   import qualified NLP.Dictionery.StarDict.Regular as SDR

   ...

     dictionary <- mkDictionary (SDR.tag "pathtoadictionary.ifo") renderer
 

Synopsis

Documentation

type Renderer = DataEntry -> Text Source #

Type of function to transform dictionary entries to a text.

class Dictionary d => StarDict d where Source #

Classtype for stardict dictionaries.

Minimal complete definition

getIfoFile, mkDictionary