Crate urlchecker

Source
Expand description

A spell-checker based on the statistical algorithm described by Peter Norvig in http://norvig.com/spell-correct.html.

Usage requires a two-step process:

  1. Call url.train() one or more times with a large text to train the language model
  2. Call url.correct(word) to retrieve the correction for the specified URL if it exists

Structsยง

URL
We hold all valid url characters and the frequency of how many times a URL is visited.