Instead of the completely arbitrary "maxErrors = prefix.Length > 4 ? 2 : prefix.Length > 2 ? 1 : 0", we could use the metric. A more likely scenario is a new interface type that would be a preemptive filter-metric, since a partial traversal of "word" by "wo" will fail, even though we mean to go further.
If there is a new interface for this and we feed it to the constructor, we should really provide a default, because this is going too far down the rabbit-hole of customization.
Instead of the completely arbitrary "maxErrors = prefix.Length > 4 ? 2 : prefix.Length > 2 ? 1 : 0", we could use the metric. A more likely scenario is a new interface type that would be a preemptive filter-metric, since a partial traversal of "word" by "wo" will fail, even though we mean to go further.
If there is a new interface for this and we feed it to the constructor, we should really provide a default, because this is going too far down the rabbit-hole of customization.