A more sophisticated approach to solve Tagalogle:
First of all we are talking about FIVE letter words. Theoretically there are about 7.9 million different combinations for 5 letters out of an alphabet of 25 letters. But most of them are obviously nonsense: CXYPT, AABCC ...
I have a made up a list of currently 263 valid five letter words ... I dont think it is complete yet ... but most probably it is almost complete.
Most of the five letter words contain TWO vowels (e.g. BUSOG, SAMPU) ... about 10 % of the words contain even THREE vowels (MAUNA, ASAWA) ... The most common vowel is A (17 %) ... followed by I (10 %) ... and most of the words with two vowels contain the combination AI, which comes as no surprise ...
The most common consonant is T (8 %) followed by N (6 %)
So it seems to be a good idea to start with a word like BAKIT or NAMIN ... of course we should change this first word on a random basis. Next we might look for a word, that does not contains ANY of these letters (e.g. PUSOD, PWEDE). But this can be optimized, if the result of the starting word is quite specific! But I will not go into details about how to optimize that second word ...
Such an approach will usually limit the number of candidates to just a couple of words ... in the best case just ONE solution will be left !
Thats all ... the technique may be improved a lot by more intrinsic approaches ... no search logic has been applied so far ... but even that simple technique should usually yield a solution within three to four steps.
I will give it a try every other day ... but rest assured, that I will not spend much time on solving such a word game ... I have better things to do ... I am just interested in methods, how to gain a fast result with reasonable efforts ...
Magandang araw sa lahat ...