Class SpazShortText
Defined in: spazshorttext.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A library to shorten text |
Method Attributes | Method Name and Description |
---|---|
addMap(search, replase, israw)
this adds a new mapping to the basemaps and processes the base maps into regexes again |
|
internal function to generate the default long -> short maps |
|
getMaps()
returns the map |
|
This processes the base maps into the this.map object of regexes and replacements |
|
shorten(text)
shortens the given text according to the map |
Method Detail