I’m working on an Arabic text search feature in my Kodular app. I have a large dictionary of words stored without the definite article “Alif Lam” (ال) at the beginning. However, users sometimes enter words with “ال” (for example, “المدرسة”), while my dictionary has them stored without it (like “مدرسة”).
Because of this, the search does not find the words correctly. I want to normalize user input by removing the “ال” prefix before performing the search.
Any advice or examples of Kodular blocks to achieve this would be very helpful.
Get the text from the user’s input.
Check if the text begins with the prefix “ال”.
If it does, remove the first two characters.(if it contains, replace it and normalise it in a global or local variable then use it for search proce)
If it doesn’t, use the text as is.
Use this newly processed text for your search