inflections-0.1.0.2: Inflections library for Haskell

Safe HaskellSafe-Inferred

Text.Inflections

Synopsis

Documentation

dasherize :: String -> StringSource

Replaces underscores with dashes in the string.

parameterize :: String -> StringSource

Replaces special characters in a string so that it may be used as part of a pretty URL. Uses the default transliterations in this library

transliterate :: String -> StringSource

Returns a String after default approximations for changing Unicode characters to a valid ASCII range are applied. If you want to supplement the default approximations with your own, you should use the transliterateCustom function instead of transliterate.

transliterateCustom :: String -> Transliterations -> String -> StringSource

Returns a String after default approximations for changing Unicode characters to a valid ASCII range are applied.

defaultTransliterations :: Map Char StringSource

These default transliterations stolen from the Ruby i18n library - https:github.comsvenfuchsi18nblobmasterlibi18nbackendtransliterator.rb#L41:L69