I have a word like "itibarsızlaştırmak".
The stem is "itibar" and the suffix list is "a, ak, ar, ı, laş, m, sız, i".
The suffix list is missing. "ma, tır, ız, i, ı, a, m, sı, mak, tı, sız, ak, ar, laş" is the right one.
How can i to reach "itibarsızlaştırmak" with suffix list in which order?
For Example : itibar + suffixList[6] -> itibarsız
itibar + suffixList[6] + suffixList[5] -> itibarsızlaş
Words and suffix list changes all time. So I need a algorithm for it. I tried merge suffix one by one with stem and comparision but it is not work for all list.
Thanks.
Using a Dictionary with assigned suffixes to words is a way of achieving this.
This code does however needs to be tweaked to discern suffixes not in the list and suffixes that are similar (like 'a' and 'ak' in your example).
UPDATE
Fixed the search pattern for the suffixes.
The result of this code run:
sız,laş,tır,mak