minimorph-0.1.6.1: English spelling functions with an emphasis on simplicity.

Copyright2012 Eric Kow (Computational Linguistics Ltd.)
LicenseBSD3
Maintainereric.kow@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

NLP.Minimorph.Util

Description

Text utility functions.

Synopsis

Documentation

tTakeEnd :: Int -> Text -> Text Source #

tTakeEnd n t returns the last n letters of t.

tDropEnd :: Int -> Text -> Text Source #

tDropEnd n t drops the last n letters of t.

(<>) :: Monoid m => m -> m -> m infixr 6 #

An infix synonym for mappend.

Since: 4.5.0.0

(<+>) :: Text -> Text -> Text infixr 6 Source #

Separated by space unless one of them is empty (in which case just the non-empty one).

tshow :: Show a => a -> Text Source #

Show a value in Text format.