Help:Language inflection bot: difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
SemperBlotto (talk | contribs) |
m added Category:Help using HotCat |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
Making a Wiktionary Python inflection bot isn't so difficult. Here are the steps... |
Making a Wiktionary Python inflection bot isn't so difficult. Here are the steps... |
||
# Know the language you're dealing with pretty well (especially the conjugations/inflection/declension) in order to avoid complications in the future and irate fellow editors. Verbs can be [[irregular verb|irregular]], [[defective verb|defective]], [[impersonal verb|impersonal]] or may have otherwise incomplete conjugations. Bots work best for regular patterns. |
# Know the language you're dealing with pretty well (especially the conjugations/inflection/declension) in order to avoid complications in the future and irate fellow editors. Verbs can be [[irregular verb|irregular]], [[defective verb|defective]], [[impersonal verb|impersonal]] or may have otherwise incomplete conjugations. Bots work best for regular patterns. |
||
# Visit [http://www.mediawiki.org/wiki/Manual:Pywikipediabot this Mediawiki page], follow it step by step. This page will guide you how to install Python and set it up for the Wikimedia framework. |
# Visit [http://www.mediawiki.org/wiki/Manual:Pywikipediabot this Mediawiki page], follow it step by step. This page will guide you how to install Python and set it up for the Wikimedia framework. |
||
##Download and unzip the Python nightly file (pywikipedia-nightly). [[w:Subversion (software)|Subversion]] (SVN) is a good tool for batch downloads and it's free. |
##Download and unzip the Python nightly file (pywikipedia-nightly). [[w:Subversion (software)|Subversion]] (SVN) is a good tool for batch downloads and it's free. |
||
##run generate_user_files.py, which will create |
##run generate_user_files.py, which will create |
||
##edit user-config.py per instructions |
##edit user-config.py per instructions |
||
##run login.py |
##run login.py |
||
# Add a Python file like [[User:FitBot/forms]] to the Python folder. Add a corresponding text file (.txt), which it can read (remember to save the text file with UTF-8 encoding. The .txt file must be the same one that is mentioned in the aforementioned Python file. |
# Add a Python file like [[User:FitBot/forms]] to the Python folder. Add a corresponding text file (.txt), which it can read (remember to save the text file with UTF-8 encoding. The .txt file must be the same one that is mentioned in the aforementioned Python file. |
||
# Make offline templates in a word-processing document (Microsoft Word, OpenOffice Writer, or TextEdit works well for this), which can be easily and quickly changed, depending on the stem. Remember to turn off any Autocorrect functions, especially for format, punctuation and spacing, or you get extra spaces and/or formating problems. Keeping the spellcheck on may or may not be a good idea, in case of mistyping something. |
# Make offline templates in a word-processing document (Microsoft Word, OpenOffice Writer, or TextEdit works well for this), which can be easily and quickly changed, depending on the stem. Remember to turn off any Autocorrect functions, especially for format, punctuation and spacing, or you get extra spaces and/or formating problems. Keeping the spellcheck on may or may not be a good idea, in case of mistyping something. |
||
# Ask others to check the test edits and request feedback from other knowledgeable users. If you try implementing new things into the code, then get other people to check for mistakes alongside you. |
# Ask others to check the test edits and request feedback from other knowledgeable users. If you try implementing new things into the code, then get other people to check for mistakes alongside you. |
||
# Create an account for your bot. On the bot's userpage, place a description of what the bot is intended to do. |
# Create an account for your bot. On the bot's userpage, place a description of what the bot is intended to do. |
||
# Start up a bot vote at [[WT:VOTE]]. |
# Start up a bot vote at [[WT:VOTE]]. |
||
# Create entries. |
# Create entries. |
||
# Check entries; check entries; check entries. Users are expected to clean up after their bot when there are problems. Especially, check the spelling of the root word - if you get it wrong then the bot will generate a load of wrongly-spelled entries that only a sysop can delete. |
# Check entries; check entries; check entries. Users are expected to clean up after their bot when there are problems. Especially, check the spelling of the root word - if you get it wrong then the bot will generate a load of wrongly-spelled entries that only a sysop can delete. |
||
==Tracking== |
==Tracking== |
||
A useful tool for tracking is the "whatlinkshere" function for template pages, which gives an automated chronological list of all pages in that category, e.g. [http://en.wiktionary.org/w/index.php?title=Special:WhatLinksHere/Template:eo-conj&limit=500 for eo-conj] (for Esperanto pages with conjugations) |
A useful tool for tracking is the "whatlinkshere" function for template pages, which gives an automated chronological list of all pages in that category, e.g. [http://en.wiktionary.org/w/index.php?title=Special:WhatLinksHere/Template:eo-conj&limit=500 for eo-conj] (for Esperanto pages with conjugations) |
||
*A tool for tracking recent changes by language is [http://www.fraktionary.com/rc/ fraktionary] |
|||
==Some bot accounts for inflected forms== |
==Some bot accounts for inflected forms== |
||
* [[User: |
* [[User:NadandoBot]] - Spanish |
||
* [[User:FitBot]] - Latin, Galician |
* [[User:FitBot]] - Latin, Galician |
||
* [[User:MewBot]] - Catalan, Dutch, Esperanto |
* [[User:MewBot]] - Catalan, Dutch, Esperanto |
||
* [[User:OpiBot]] - Lithuanian, Romanian, Slovene, Esperanto<small> - Albanian forthcoming - possibly Hungarian, Armenian, Turkish</small> |
* [[User:OpiBot]] - Lithuanian, Romanian, Slovene, Esperanto<small> - Albanian forthcoming - possibly Hungarian, Armenian, Turkish</small> |
||
* [[User:SemperBlottoBot]] - Italian, French, Latin, German |
* [[User:SemperBlottoBot]] - Italian, French, Latin, German, Portuguese |
||
* [[User:SurjectionBot]] - Finnish |
|||
* [[User:WingerBot]] - Arabic, Russian |
|||
[[Category:Help]] |
Latest revision as of 02:40, 17 March 2024
Making a Wiktionary Python inflection bot isn't so difficult. Here are the steps...
- Know the language you're dealing with pretty well (especially the conjugations/inflection/declension) in order to avoid complications in the future and irate fellow editors. Verbs can be irregular, defective, impersonal or may have otherwise incomplete conjugations. Bots work best for regular patterns.
- Visit this Mediawiki page, follow it step by step. This page will guide you how to install Python and set it up for the Wikimedia framework.
- Download and unzip the Python nightly file (pywikipedia-nightly). Subversion (SVN) is a good tool for batch downloads and it's free.
- run generate_user_files.py, which will create
- edit user-config.py per instructions
- run login.py
- Add a Python file like User:FitBot/forms to the Python folder. Add a corresponding text file (.txt), which it can read (remember to save the text file with UTF-8 encoding. The .txt file must be the same one that is mentioned in the aforementioned Python file.
- Make offline templates in a word-processing document (Microsoft Word, OpenOffice Writer, or TextEdit works well for this), which can be easily and quickly changed, depending on the stem. Remember to turn off any Autocorrect functions, especially for format, punctuation and spacing, or you get extra spaces and/or formating problems. Keeping the spellcheck on may or may not be a good idea, in case of mistyping something.
- Ask others to check the test edits and request feedback from other knowledgeable users. If you try implementing new things into the code, then get other people to check for mistakes alongside you.
- Create an account for your bot. On the bot's userpage, place a description of what the bot is intended to do.
- Start up a bot vote at WT:VOTE.
- Create entries.
- Check entries; check entries; check entries. Users are expected to clean up after their bot when there are problems. Especially, check the spelling of the root word - if you get it wrong then the bot will generate a load of wrongly-spelled entries that only a sysop can delete.
Tracking
[edit]A useful tool for tracking is the "whatlinkshere" function for template pages, which gives an automated chronological list of all pages in that category, e.g. for eo-conj (for Esperanto pages with conjugations)
Some bot accounts for inflected forms
[edit]- User:NadandoBot - Spanish
- User:FitBot - Latin, Galician
- User:MewBot - Catalan, Dutch, Esperanto
- User:OpiBot - Lithuanian, Romanian, Slovene, Esperanto - Albanian forthcoming - possibly Hungarian, Armenian, Turkish
- User:SemperBlottoBot - Italian, French, Latin, German, Portuguese
- User:SurjectionBot - Finnish
- User:WingerBot - Arabic, Russian