Analyse a typo and suggests the two closest names.
error_correction_propostion(asked_objet, method = "jaccard", n = 2)
| asked_objet | the R name producing an error |
|---|---|
| method | Method for distance calculation. The default is "jaccard", see stringdist-metrics. |
| n | number of corrections to suggest. |
a character vector with the closest neighbors
error_correction_propostion("iri")#> [1] "IQR" "iris"