filterText function
dynamic
filterText(
- String text
)
Implementation
filterText(String text) {
return text
.toLowerCase()
.replaceAll(' ', '')
.replaceAll('aa', 'a')
.replaceAll("'", '')
.replaceAll('uu', 'u')
.replaceAll('jj', 'j')
.replaceAll('to', 'tha')
.replaceAll('tho', 'tha')
.replaceAll('asy', 'as')
.replaceAll('sh', 's')
.replaceAll('thi', 'ti')
.replaceAll('ii', 'i')
.replaceAll('ff', 'f')
.replaceAll('gho', 'gha')
.replaceAll('gh', 'g')
.replaceAll('kh', 'h')
.replaceAll('ts', 's')
.replaceAll('dz', 'z')
.replaceAll('thu', 'tu')
.replaceAll('gho', 'gha')
.replaceAll('go', 'gha')
.replaceAll('qq', 'q')
.replaceAll('dd', 'd')
.replaceAll('dh', 'd');
}