Вікіпедія:AutoWikiBrowser/Typos
Матеріал з Вікіпедії — вільної енциклопедії.
These are the typo regular expressions for RegExTypoFix and wikEd, development is now open to the public.
Please add to/modify/improve these regular expressions!
Зміст |
Adding/changing a misspelling
- Go here to suggest a change if you don't know how to do it yourself or you have any doubts about the change. Knowledgeable users will be able to add it for you and perhaps improve it.
- Always consider the possibility of false positives—don't add if there is one
- Check the Rejected Words list
- Aim to have a single regular expression for each word when possible
- Keep in mind every addition/possibility of a word taxes more CPU and slows the article-scanning process
- Remember to update the variable name if you change something that affects it
TODO:
- Remove any duplication
- Expand regexes to accept more suffixes (e.g., "ing" "ed" "able")
- Keep in mind some regexes purposely fix only certain versions of a word to avoid false positives. These should be marked with an underscore character _ at the end of the
word=
entry
- Keep in mind some regexes purposely fix only certain versions of a word to avoid false positives. These should be marked with an underscore character _ at the end of the
- Remove any very unusual words
Typo list
All changes to this list are LIVE. AWB loads directly from this list whenever someone enables the RETF option.
New additions
- For ease of fixing errors in newly introduced typos, please put new entries at the top of this section.
<Typo word="Росія" find="(Р|р)ос+сі(я|ї|йська|йський|йські)" replace="$1осі$2" /> <Typo word="Україна" find="\b(У|у)кра(і|и)н(а|и|ська|ський|ські)\b" replace="$1країн$3" /> <Typo word="аргумент" find="\b(А|а)рґумент(|и|ів)\b" replace="$1ргумент$2" /> <Typo word="оригінальний" find="\b(О|о)риґінальн(ий|а|і)\b" replace="$1ригінальн$2" /> <Typo word="Голландія" find="\b(Г|г)оланд(ія|ії|ська|ський|ські)\b" replace="$1олланд$2" /> <Typo word="хімія" find="\b(\w*х|Х|х)ем(\.|і\w*)\b" replace="$1ім$2" /> <Typo word="інший" find="\bинш(а|ий|і)\b" replace="інш$1" /> <Typo word="Пруссія" find="\b(П|п)рус(ія|ії|ька|ький|ькі)\b" replace="$1русс$2" /> <Typo word="узбережжя" find="\b(У|у)зберіжжя\b" replace="$1збережжя" /> <Typo word="шведський" find="\b(Ш|ш)вецьк(ий|а|і)\b" replace="$1ведськ$2" /> <Typo word="широкосмуговий" find="\b(Ш|ш)ирокополосн(ий|а|і)\b" replace="$1ирокосмугов$2" /> <Typo word="магніт" find="\b(М|м)агнет(|и|ні)\b" replace="$1агніт$2" /> <Typo word="варіант" find="\b(В|в)аріянт(|а|и|у|ом|і)\b" replace="$1аріант$2" /> <Typo word="Лос-Анджелес" find="\bЛос( |-)Ан(д)желес(|а|і|у|ом)\b" replace="Лос-Анджелес$2" /> <Typo word="Нью-Йорк" find="\bНью Йорк(|а|у|ом|)\b" replace="Нью-Йорк$2" /> <Typo word="Буенос-Айрес" find="\bБуенос Айрес(а|і|и|у|ом|)\b" replace="Буенос-Айрес$2" /> <Typo word="Тонна" find="\b(Т|т)он(|а)\b" replace="$1онн$2" /> <Typo word="щодо" find="стосовно" replace="щодо" /> <Typo word="Щодо" find="Стосовно" replace="Щодо" /> <Typo word="Хокей" find="Гоке(й|ю|ї|єм|йн)" replace="Хоке$1" /> <Typo word="хокей" find="гоке(й|ю|ї|єм|йн)" replace="хоке$1" /> <Typo word="Хіт" find="Гіт" replace="Хіт" /> <Typo word="хіт" find="гіт" replace="хіт" /> <Typo word="найбільший" find="\bсам(а|ий|е|і) більш(а|ий|е|і)\b" replace="найбільш$1" /> <Typo word="Найбільший" find="\bСам(а|ий|е|і) більш(а|ий|е|і)\b" replace="Найбільш$1" /> <Typo word="численний" find="\bбагаточисельн(а|ий|е|і)\b" replace="численн$1" /> <Typo word="Численний" find="\bБагаточисельн(а|ий|е|і)\b" replace="Численн$1" /> <Typo word="Apostrophe handler" find="/([\wа-яА-ЯґҐєЄіІїЇ'])’([\wа-яА-ЯёЁґҐєЄіІїЇ])" replace="$1'$2" />