That's basically a Trie right? To be fair I have only heard of them and know they can be used to do neat tricks, I've rarely used one myself.
For example, if you have words
talk talked talking talks walk walked walking walks
For example, if you have words
there’s no need to repeat the “”, “ed”, “ing”, “s” parts.