SanitiserConfig

com.bahmanm.persianutils.SanitiserConfig
final case class SanitiserConfig(standardiseCharacters: Boolean = ..., cleanSpacing: Boolean = ..., removeTatweel: Boolean = ..., standardiseDigits: Boolean = ..., standardisePunctuation: Boolean = ..., removeDiacritics: Boolean = ...)

Configuration options for TextSanitiser.

Value parameters

cleanSpacing

cleans and canonicalises whitespace, non-breaking spaces, and zero-width non-joiners

removeDiacritics

strips Arabic Tashkeel (harakat) short vowel diacritics

removeTatweel

strips Kashida / Tatweel elongation characters

standardiseCharacters

replaces Arabic and non-standard character variants with standard Persian characters

standardiseDigits

converts Western ASCII and Eastern Arabic digits into Persian digits

standardisePunctuation

normalises punctuation symbols into Persian equivalents

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this()

Auxiliary zero-argument constructor for seamless Java interoperability.

Auxiliary zero-argument constructor for seamless Java interoperability.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product