I think a word tree is a Map where the values are more word trees or any kind of non-Map (=leaf).