Memoized the slow stem/lemma function, and now the regexes are the bottleneck by far (prob not able to knock off nontrivial time, so I won't try). Tried the heapq module (since I did not know it existed), but it is slower than the sorting the list after appends.