Applies automatic heuristics to edits