When grading student work, vocabulary sentences for example, teachers need the ability to search student submissions for matching sentences for that assignment submission. This could also help with finding similar sentences or paragraphs in essays.
This is a similar idea to a plagiarism checker, but on a much smaller scale.