WordAlignment-0.1.0.0: Bigram word pair alignments.

Safe HaskellNone
LanguageHaskell2010

Linguistics.Common

Description

Some common functions and things that are not of immediate importance to understand the algorithms.

Synopsis

Documentation

type IMCp = (BTI, BTI) Source

alignPretty :: [[IMCp]] -> [String] Source

Actually align something prettily

printAligned :: IMCp -> [IMCp] -> String Source

Prettyprint `characters', which are actually small bytestrings.

printAlignedPad :: Char -> IMCp -> [IMCp] -> String Source

Print with special padding character

printLength :: BTI -> Int Source

Length in printed characters of an UTF8 string wrapped as a ByteString

NOTE isMark selects unicode symbols that modify a character, thereby not increasing the length of the printed string.

printLines :: Handle -> [[Text]] -> IO () Source