Discarding rare words when comparing texts - per text, per comparison, or per codex?
Tf-idf (text frequency - Inverness document frequency) will highlight your interests.

https://en.m.wikipedia.org/wiki/Tf–idf