Skip to main content

alternate_spellings

Function alternate_spellings 

Source
pub fn alternate_spellings(urls: &[String]) -> Vec<(String, String)>
Expand description

Pairs of addresses that name the same place in a different spelling: localhost:8989 and 127.0.0.1:8989, or tv.example.org and https://tv.example.org. Both are kept (a stored address is never rewritten), but a person adding the second usually did not mean to. The same text twice is not a pair, and addresses that do not parse are skipped.