Forest of trees: restore hierarchical grouping of terms
This MR fixes the bug where we couldn't group nested terms anymore for any grouping deeper than level 1, essentially. The way I have fixed the bug was, funnily enough, simply removing some (incorrect) rendering code from searchTableNgrams
as well as removing the "state hack" from the NodeStory
.
This MR paves the way to treating Terms as forest of Ngrams, which allows us to apply recursion schemes to fold, unfold and transform what is effectively an F-Algebra.
Screenshots: