I recently noticed a node where the OP asked about a 'scaler', when most of us know they meant scalar. Naturally, someone considered the node for editing s/scaler/scalar/;.
I couldn't find anything about it - perhaps my search terms were off... but could we have some intelligence in the searches for commonly misspelled (or mis-termed?) terms? scaler->scalar comes to mind, as does trinary->ternary*.
Seems to me this wouldn't be that much skin off our collective nose (performance-wise), given a sufficiently small dictionary of common misspellings/misused/mistaken terms, of which I can't think of too many others at the moment. But I certainly wouldn't recommend this approach for regular dictionary words - just very perl-centric terms.
* Not technically a misspelling. But I think you know what I mean :)
$,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Synonyms/misspellings and searching
by ww (Archbishop) on Sep 03, 2006 at 23:45 UTC | |
|
Re: Synonyms/misspellings and searching
by shmem (Chancellor) on Sep 04, 2006 at 21:11 UTC | |
by TGI (Parson) on Sep 05, 2006 at 18:48 UTC | |
|
Re: Synonyms/misspellings and searching
by stonecolddevin (Parson) on Sep 03, 2006 at 19:17 UTC |