dynamic types for the worddiff as well
simplifying sentence and worddiff a bit, factorizing some