sahanruwantha / siconv

The siconv Python package simplifies the conversion between Sinhala and Singlish languages. Whether you're dealing with Sinhala text that needs transformation into Singlish or vice versa, siconv offers a user-friendly solution.
GNU General Public License v3.0
6 stars 2 forks source link

String is a list in python #21

Closed rukshn closed 7 months ago

rukshn commented 7 months ago

String is a list in Python by default, therefore this casting is not necessary

https://github.com/sahanruwantha/siconv/blob/7390e35b750e4f8c46af0bca982b2fce1cf19168/siconv/to_singlish.py#L24

sahanruwantha commented 7 months ago

I originally imported pillam and characters from another file, but i could import characters(dic) but not pillam(list). for some reason it converts to unicord characters. so converting it to a list how i fixed. since now there is only file i suppose i could remove the type casting