Hey guys!
Not sure if the title is the best, but I will attempt to describe what I need to do and trust that someone can help me to find a way to accomplish the task?
I work with the VB.NET language and I created an app that makes wordlists from text. However, I work with a foreign language and would like to create a feature that helps me and other colleagues with different languages.
The Problem: The following is a short list of words in the language I work with divided manually into prefix/infix/root-radical/suffix. I have been searching for a very long time for a way to:
1. Search through a wordlist (10;100;1000s of words) and (in a similar way to longest prefix)...
2. Search all prefixes in the list until only the root/radical is left.
3. Group words with similar prefixes splitting prefixes/infixes/root-radical/suffixes into separate columns on a Listview in a similar way to the following list.
List of Words:
a-ti-a-nug
a-ti-a-pun
a-ti-atu-mohey
a-ti-atu-mõ'e
a-ti-kuap
a-ti-wyro
a-ti-po-wyro
a-tu-uka
a-tu-nug
a-to-pi'ig
a-to-py-tyk
I'm sure there are a number of different methods which can achieve this, i.e. REGEX, etc. But, after much searching I am drawing a blank! If anyone can help with this problem I would greatly appreciate it!
What I have tried:
I have tried the longest prefix approach, but it searches the list until the longest prefix is found and then gives the longest prefix as the result, i.e. only one word. I need to achieve something similar to the list above with some flexibility (i.e. a numeric spinner or up/down to count how many characters to split into each column?) because it needs to work for more than one language.