Mailcheck is an email domain suggestion library and validation utility designed to identify misspelled email addresses. It functions as a string similarity tool that calculates the distance between typed domains and known correct extensions to provide automated correction suggestions.
The library allows for the use of custom domain suggestion lists and the implementation of custom similarity and string distance logic. These mechanisms enable the replacement of default matching thresholds and distance algorithms with user-defined functions.
The tool covers domain validation and correction through pattern-based domain analysis and lookup-table verification. It utilizes Levenshtein-based string distance and domain-suffix matching to analyze second and top-level domain patterns for typos.