User:QuasiBot: difference between revisions

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Content deleted Content added
m SUBST:
 
(8 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|colspan="2" style="text-align: center; font size: 95%; vertical-align: top" | ([[User talk:QuasiBot|talk]] · [[Special:Contributions/QuasiBot|contribs]])
|colspan="2" style="text-align: center; font size: 95%; vertical-align: top" | ([[User talk:QuasiBot|talk]] · [[Special:Contributions/QuasiBot|contribs]])
|-
|-
|colspan="2" style="text-align: center; vertical-align: top"|<center>[[File:Edit-copy purple-wikit.svg|70px]][[File:Crystal Clear action run.png|70px]]</center>
|colspan="2" style="text-align: center; vertical-align: top"|[[File:Edit-copy purple-wikit.svg|70px]][[File:Crystal Clear action run.png|70px]]
|-
|-
|
|
Line 38: Line 38:
'''QuasiBot's objective:''' To populate the conjugation tables of Latin verbs.
'''QuasiBot's objective:''' To populate the conjugation tables of Latin verbs.


<center><div class="usermessage">'''You can feed the bot with new Latin verbs [[User:QuasiBot/feedme|HERE]]</div></center>
<div class="usermessage" style="text-align:center; margin:0 auto 0 auto;">'''You can feed the bot with Latin verbs [[User:QuasiBot/feedme|HERE]]'''</div>


You can also feed it with new [[User:QuasiBot/eo-feedme|Esperanto verbs]] or [[User:QuasiBot/ia-feedme|Interlingua verbs]].
It can also be fed with [[Esperanto]] or [[Interlingua]] or [[Ido]] verbs.


==Mode of operation==
==Mode of operation==
Line 70: Line 70:


==Python procedures==
==Python procedures==
(paradigm ft. <tt>suscito</tt>)<big>
(paradigm ft. <span style="font-family:monospace">suscito</span>)<div style="font-size:1.2em;">
<source lang="bash">
<source lang="bash">
# In Terminal: use ls, cd, pwd to move to ../mybot/pywikipedia directory.
# In Terminal: use ls, cd, pwd to move to ../mybot/pywikipedia directory.
Line 90: Line 90:
# Caveat: p=1 for Participle (lemmata).
# Caveat: p=1 for Participle (lemmata).
# For participle forms: manually type or paste: {{subst:User:QuasiBot/part|suscito|new=0}}.
# For participle forms: manually type or paste: {{subst:User:QuasiBot/part|suscito|new=0}}.
# Caveat: la=0 if there is a Latin>Verb section already. </source>
# Caveat: la=0 if there is a Latin>Verb section already. </source></div>


===For double verbs===
===For double verbs===
(paradigm feat. <tt>edo</tt> and <tt>edo(2)</tt>)<big>
(paradigm feat. <span style="font-family:monospace">edo</span> and <span style="font-family:monospace">edo(2)</span>)<div style="font-size:1.2em;">
<source lang="bash">
<source lang="bash">
# In Xterm: use ls, cd, pwd to move to ../mybot/pywikipedia directory.
# In Xterm: use ls, cd, pwd to move to ../mybot/pywikipedia directory.
Line 120: Line 120:
# Caveat: p=1 for Participle (lemmata), and then manual clean up is required (which definitely should be done by AugPi, not QuasiBot).
# Caveat: p=1 for Participle (lemmata), and then manual clean up is required (which definitely should be done by AugPi, not QuasiBot).
# For participle forms: manually type or paste: {{subst:User:QuasiBot/part|edo|new=0}} or {{subst:User:QuasiBot/part|edo(2)|new=0}} depending on which verb it belongs to.
# For participle forms: manually type or paste: {{subst:User:QuasiBot/part|edo|new=0}} or {{subst:User:QuasiBot/part|edo(2)|new=0}} depending on which verb it belongs to.
# Caveat: la=0 if there is a Latin>Verb section already. </source>
# Caveat: la=0 if there is a Latin>Verb section already. </source></div>


===Esperanto verbs===
===Esperanto verbs===
(feat. <tt>ĉarmi</tt>)<big>
(feat. <span style="font-family:monospace>ĉarmi</span>)<div style="font-size:1.2em;">
<source lang="bash">
<source lang="bash">
python login.py
python login.py
Line 133: Line 133:
stem = u'\u0109arm'
stem = u'\u0109arm'
upload(list, stem)
upload(list, stem)
</source></big>
</source></div>


===Interlingua verbs===
===Interlingua verbs===
(feat. <tt>scriber</tt>)<big>
(feat. <span style="font-family:monospace>scriber</span>)<div style="font-size:1.2em;">
<source lang="bash">
<source lang="bash">
python login.py
python login.py
Line 143: Line 143:
python </source><source lang="python">
python </source><source lang="python">
from iaconjdata import *
from iaconjdata import *
upload(list_er, 'scrib')</source></big>
upload(list_er, 'scrib')</source></div>


===Ido verbs===
===Ido verbs===
<big><source lang="bash">
<div style="font-size:1.2em;"><source lang="bash">
python login.py
python login.py
# (log in)
# (log in)
Line 152: Line 152:
python </source><source lang="python">
python </source><source lang="python">
from ioconjdata import *
from ioconjdata import *
upload(list_active_and_passive, 'korekt')</source></big>
upload(list_active_and_passive, 'kolekt')</source></div>


(<tt>list_active_only</tt> for intransitive verbs)
(<span style="font-family:monospace>list_active_only</span> for intransitive verbs)


==Bash procedures==
==Bash procedures==
===Adding glosses===
===Adding glosses===
(for <tt>colligo(2)</tt>)<big>
(for <span style="font-family:monospace>colligo(2)</span>)<div style="font-size:1.2em;">
<source lang="bash">
<source lang="bash">
bash gloss_all_1st "colligo(2)" colligo colligō collig colligav </source></big>
bash gloss_all_1st "colligo(2)" colligo colligō collig colligav </source></div>


(for <tt>quaero</tt>)<big>
(for <span style="font-family:monospace>quaero</span>)<div style="font-size:1.2em;">
<source lang="bash">
<source lang="bash">
bash gloss_all_3rd quaero quaero quaerō quaer quaesiv</source></big>
bash gloss_all_3rd quaero quaero quaerō quaer quaesiv</source></div>


===Adding count page (if missing)===
===Adding count page (if missing)===
(paradigm feat. Esperanto verb <tt>provi</tt>)<big>
(paradigm feat. Esperanto verb <span style="font-family:monospace>provi</span>)<div style="font-size:1.2em;">
<source lang="bash">
<source lang="bash">
sed 's/*/prov/g' eo_conj_template > provi.txt
sed 's/*/prov/g' eo_conj_template > provi.txt
# more provi.txt # (preview)
# more provi.txt # (preview)
bash count_page_verb provi.txt </source></big>
bash count_page_verb provi.txt </source></div>


===Changing Esperanto verbal participles to adjectival participles===
===Changing Esperanto verbal participles to adjectival participles===
(ft. <tt>feki</tt>)<big>
(ft. <span style="font-family:monospace>feki</span>)<div style="font-size:1.2em;">
<source lang="bash">
<source lang="bash">
bash eopartverb fek </source></big>
bash eopartverb fek </source></div>


==Python code (so far): file <tt>conjdata.py</tt>==
==Python code (so far): file <span style="font-family:monospace>conjdata.py</span>==
[[/conjdata.py]]
[[/conjdata.py]]


Line 184: Line 184:


[[/iaconjdata.py]]
[[/iaconjdata.py]]

[[/ioconjdata.py]]


==Bash code==
==Bash code==
Line 254: Line 256:
: Yes, [[User:Robert Ullmann|RU]] has confirmed the above supposition... On another note: I've been "running" down DISTRIB pages again (as I had originally proposed (on this page when I requested bot status on [[Wiktionary:Beer Parlor|Beer Parlour]])). {{User:QuasiBot/sig}} 22:11, 12 August 2010 (UTC)
: Yes, [[User:Robert Ullmann|RU]] has confirmed the above supposition... On another note: I've been "running" down DISTRIB pages again (as I had originally proposed (on this page when I requested bot status on [[Wiktionary:Beer Parlor|Beer Parlour]])). {{User:QuasiBot/sig}} 22:11, 12 August 2010 (UTC)


The Lupin autoedit's autoSave feature is working in Opera (though not in Firefox), so I can run down a DISTRIB page using Opera (...Safari has been mysteriously crashing lately, not always but in a non-deterministic fashion (often enough to be bothersome), when opening or previewing edit windows of Wiktionary articles (though it didn't happen the last time I run down a DISTRIB page using it...)). {{User:AugPi/sig}} 19:04, 13 August 2010 (UTC)
The Lupin autoedit's autoSave feature is working in Opera (though not in Firefox), so I can run down a DISTRIB page using Opera (...Safari has been mysteriously crashing lately, not always but in a non-deterministic fashion (often enough to be bothersome), when opening or previewing edit windows of Wiktionary articles (though it didn't happen the last time I run down a DISTRIB page using it...)). &nbsp;&nbsp;[[User:AugPi|AugPi]] 19:04, 13 August 2010 (UTC)


The reconfiguring phase is, for the most part, over. Now it is just a matter of converting templates to (and updating templates of) different conjugations (probably not all at once, but as they become necessary (for conjugating given verbs)). {{User:AugPi/sig}} 03:47, 18 August 2010 (UTC)
The reconfiguring phase is, for the most part, over. Now it is just a matter of converting templates to (and updating templates of) different conjugations (probably not all at once, but as they become necessary (for conjugating given verbs)). &nbsp;&nbsp;[[User:AugPi|AugPi]] 03:47, 18 August 2010 (UTC)


The core templates are all set up (there are 20 of them) and there is a procedure for generating nopass templates from existing templates, so I have set up a public feed-me page for these garden-variety conjugations... {{User:AugPi/sig}} 14:48, 20 August 2010 (UTC)
The core templates are all set up (there are 20 of them) and there is a procedure for generating nopass templates from existing templates, so I have set up a public feed-me page for these garden-variety conjugations... &nbsp;&nbsp;[[User:AugPi|AugPi]] 14:48, 20 August 2010 (UTC)


All glossing is now done through a combination of Bash and Pywikibot: no more clicking on the [[/GLOSS]] page. {{User:AugPi/sig}} 01:50, 29 November 2010 (UTC)
All glossing is now done through a combination of Bash and Pywikibot: no more clicking on the [[/GLOSS]] page. &nbsp;&nbsp;[[User:AugPi|AugPi]] 01:50, 29 November 2010 (UTC)


Likewise, new entry creation is now mostly done through Python and Pywikibot: no more clicking on the [[/DISTRIB]] page. {{User:AugPi/sig}} 02:06, 29 November 2010 (UTC)
Likewise, new entry creation is now mostly done through Python and Pywikibot: no more clicking on the [[/DISTRIB]] page. &nbsp;&nbsp;[[User:AugPi|AugPi]] 02:06, 29 November 2010 (UTC)


Tested conjugating the Esperanto verb [[malakcepti]]. {{User:AugPi/sig}} 10:46, 8 December 2010 (UTC)
Tested conjugating the Esperanto verb [[malakcepti]]. &nbsp;&nbsp;[[User:AugPi|AugPi]] 10:46, 8 December 2010 (UTC)


Also tested conjugating the Esperanto verb [[provi]]. {{User:AugPi/sig}} 22:17, 9 December 2010 (UTC)
Also tested conjugating the Esperanto verb [[provi]]. &nbsp;&nbsp;[[User:AugPi|AugPi]] 22:17, 9 December 2010 (UTC)

. . .

The adding-on of the glossing template <span style="font-family:monospace>la-conj-form-gloss</span> was a mistake, so QuasiBot has now started Phase 1 of its removal. &nbsp;&nbsp;[[User:AugPi|AugPi]] 23:59, 15 February 2014 (UTC)

Now Phase 2. &nbsp;&nbsp;[[User:AugPi|AugPi]] 19:55, 16 February 2014 (UTC)


===Procedure/paradigm (outdated, though it still works)===
===Procedure/paradigm (outdated, though it still works)===
Line 289: Line 297:
* verb-mac in the DISTRIB pages is missing for the participles {{User:QuasiBot/sig}} 03:45, 19 August 2010 (UTC)
* verb-mac in the DISTRIB pages is missing for the participles {{User:QuasiBot/sig}} 03:45, 19 August 2010 (UTC)


: This shouldn't be hard to fix (1 regex per DISTRIB page). {{User:AugPi/sig}} 03:49, 19 August 2010 (UTC)
: This shouldn't be hard to fix (1 regex per DISTRIB page). &nbsp;&nbsp;[[User:AugPi|AugPi]] 03:49, 19 August 2010 (UTC)


: It's done! {{User:AugPi/sig}} 06:07, 20 August 2010 (UTC)
: It's done! &nbsp;&nbsp;[[User:AugPi|AugPi]] 06:07, 20 August 2010 (UTC)


====Derived (i.e. reduced) templates/conjugations====
====Derived (i.e. reduced) templates/conjugations====
Line 315: Line 323:
====Comments====
====Comments====
* Parameter 2 (for the "gloss" templates) works when subst'ing in directly, but it hasn't been set up to be included automatically when creating entries from a DISTRIB page. {{User:QuasiBot/sig}} 14:51, 18 August 2010 (UTC)
* Parameter 2 (for the "gloss" templates) works when subst'ing in directly, but it hasn't been set up to be included automatically when creating entries from a DISTRIB page. {{User:QuasiBot/sig}} 14:51, 18 August 2010 (UTC)
: I have got an idea: instead of an optional parameter 2, there would be [[User:QuasiBot/verb-mac]] which would ordinarily contain a function which constructs the macronized form of the verb lemma based on available data, i.e. based on [[User:QuasiBot/verb]], <nowiki>{{User:QuasiBot/{{User:QuasiBot/verb}}}}</nowiki>, <nowiki>{{User:QuasiBot/{{User:QuasiBot/verb}}/1}}</nowiki>. But if [[User:QuasiBot/verb]] has an irregular lemma, then [[User:QuasiBot/verb-mac]] would be replaced by a fixed string: the macronized spelling of the irregular lemma. Then [[User:QuasiBot/verb-mac]] would ''always'' be includeonly-subst'ed into "gloss" templates, taking in {{{1}}} as its own parameter 1. {{User:AugPi/sig}} 15:57, 18 August 2010 (UTC)
: I have got an idea: instead of an optional parameter 2, there would be [[User:QuasiBot/verb-mac]] which would ordinarily contain a function which constructs the macronized form of the verb lemma based on available data, i.e. based on [[User:QuasiBot/verb]], <nowiki>{{User:QuasiBot/{{User:QuasiBot/verb}}}}</nowiki>, <nowiki>{{User:QuasiBot/{{User:QuasiBot/verb}}/1}}</nowiki>. But if [[User:QuasiBot/verb]] has an irregular lemma, then [[User:QuasiBot/verb-mac]] would be replaced by a fixed string: the macronized spelling of the irregular lemma. Then [[User:QuasiBot/verb-mac]] would ''always'' be includeonly-subst'ed into "gloss" templates, taking in {{{1}}} as its own parameter 1. &nbsp;&nbsp;[[User:AugPi|AugPi]] 15:57, 18 August 2010 (UTC)
:: No: /verb is for direct use only in DISTRIB pages, not in "gloss" templates... because the entry creation templates should take in public variables as parameters and use only hidden constants, no hidden variables. {{User:AugPi/sig}} 16:09, 18 August 2010 (UTC)
:: No: /verb is for direct use only in DISTRIB pages, not in "gloss" templates... because the entry creation templates should take in public variables as parameters and use only hidden constants, no hidden variables. &nbsp;&nbsp;[[User:AugPi|AugPi]] 16:09, 18 August 2010 (UTC)
:: Better idea: /verb-mac would be usually set to 0, and usually not be bothered with... its 0 value would tell the DISTRIB pages to ignore it. But if /verb-mac is not set to 0, then it would contain the macronized form of the irregular lemma. When the DISTRIB page sees this, it sends /verb-mac as parameter 2 to the entry-creation template. {{User:AugPi/sig}} 16:14, 18 August 2010 (UTC)
:: Better idea: /verb-mac would be usually set to 0, and usually not be bothered with... its 0 value would tell the DISTRIB pages to ignore it. But if /verb-mac is not set to 0, then it would contain the macronized form of the irregular lemma. When the DISTRIB page sees this, it sends /verb-mac as parameter 2 to the entry-creation template. &nbsp;&nbsp;[[User:AugPi|AugPi]] 16:14, 18 August 2010 (UTC)
:: It's done! {{User:AugPi/sig}} 06:08, 20 August 2010 (UTC)
:: It's done! &nbsp;&nbsp;[[User:AugPi|AugPi]] 06:08, 20 August 2010 (UTC)


====Old school core templates====
====Old school core templates====
Line 363: Line 371:
|0={{subst:User:QuasiBot/{{subst:User:QuasiBot/la-verb|{{{1}}}|conj}}+gloss|{{{1}}}|new=0|la={{{la|1}}}|v={{{v|1}}}|p={{{p|0}}}|ety={{{ety|0}}}|2={{subst:User:QuasiBot/la-verb|{{{1}}}|mac}}|lemma={{subst:User:QuasiBot/la-verb|{{{1}}}|lemma}}}}
|0={{subst:User:QuasiBot/{{subst:User:QuasiBot/la-verb|{{{1}}}|conj}}+gloss|{{{1}}}|new=0|la={{{la|1}}}|v={{{v|1}}}|p={{{p|0}}}|ety={{{ety|0}}}|2={{subst:User:QuasiBot/la-verb|{{{1}}}|mac}}|lemma={{subst:User:QuasiBot/la-verb|{{{1}}}|lemma}}}}
|1={{subst:User:QuasiBot/1n2|{{subst:User:QuasiBot/{{subst:User:QuasiBot/la-verb|{{{1}}}|conj}}+gloss|{{{1}}}|new=0|la={{{la|1}}}|v={{{v|1}}}|p={{{p|0}}}|ety={{{ety|0}}}|2={{subst:User:QuasiBot/la-verb|{{{1}}}|mac}}|lemma={{subst:User:QuasiBot/la-verb|{{{1}}}|lemma}}}}|{{count page|[[Wiktionary:Page count]]}}}}}}</includeonly>
|1={{subst:User:QuasiBot/1n2|{{subst:User:QuasiBot/{{subst:User:QuasiBot/la-verb|{{{1}}}|conj}}+gloss|{{{1}}}|new=0|la={{{la|1}}}|v={{{v|1}}}|p={{{p|0}}}|ety={{{ety|0}}}|2={{subst:User:QuasiBot/la-verb|{{{1}}}|mac}}|lemma={{subst:User:QuasiBot/la-verb|{{{1}}}|lemma}}}}|{{count page|[[Wiktionary:Page count]]}}}}}}</includeonly>

==External links==
* [http://www.regular-expressions.info/reference.html regex info] | [http://regex.info regex.info]

* [http://mally.stanford.edu/~sr/computing/basic-unix.html Basic UNIX commands] | [http://info.ee.surrey.ac.uk/Teaching/Unix/ UNIX Tutorial for Beginners]

* [http://tldp.org/LDP/abs/html/index.html Advanced Bash-Scripting Guide]

* [http://en.wikiversity.org/wiki/Pywikipediabot Pywikibot] | [http://meta.wikimedia.org/wiki/Pywikipediabot/Scripts Pywikibot/Scripts]

* [http://docs.python.org/tutorial/ The Python Tutorial] | [http://www.sthurlow.com/python/ A Beginner's Python Tutorial] | [http://diveintopython.org/index.html Dive Into Python] | [http://radiantbytes.com/books/python-latex/index.html An Introduction to Python and LaTeX]

* [http://www.tbray.org/ongoing/When/200x/2003/04/26/UTF UTF-8] | [http://stackoverflow.com/questions/602912/how-do-you-echo-a-4-digit-unicode-character-in-bash UTF-8 encoding in bash] | [http://stackoverflow.com/questions/990169/how-do-convert-unicode-escape-sequences-to-unicode-characters-in-a-python-string decode/encode Unicode (in Python)]<sup>[[User:QuasiBot/Python#Macrons]]</sup> | {{w|Unicode_and_HTML}}

Latest revision as of 15:19, 2 July 2019

QuasiBot This user is a bot.
(talk · contribs)
Operator: AugPi (t/c)
Approved? Yes
Flagged? Yes
Task/s: Inflect Latin verbs
Source code: Templates (see Special:PrefixIndex/User:QuasiBot/la
Basically I just subst and/or preload templates.
Edit rate:
◆ Max: 30 edits per minute when editing with Pywikipediabot (and Python or Bash).
◆ Max: 6 edits per minute when pasting subst templates manually.
◆ (obsolete) Max: 8 edits per minute when "running" down a DISTRIB page.
Edit period/s: When AugPi is online.
Automatic or manual? Manual login, new pages: automatic, existing pages: semi-automatic and/or manual.

QuasiBot's objective: To populate the conjugation tables of Latin verbs.

You can feed the bot with Latin verbs HERE

It can also be fed with Esperanto or Interlingua or Ido verbs.

Mode of operation

[edit]

New page creation: automatic (Python).

Glossing: becoming automatic (Bash).

Otherwise manual (but not entirely: substing templates) and this can be done by AugPi.

Manual login. Does not run continuously, autonomously, like the AutoFormat (used to do) or (now) KassadBot, but is actuated by AugPi for each batch of edits.

Uses the following: (lower level) MediaWiki Templates in en.wikt, (middle level) Pywikibot (w/ Python, of course), (higher level) Python or Bash, depending on the task.

What it used to use: Lupin autoedit, /DISTRIB page, /GLOSS page. Mostly obsolete now: exeunt.

Edits per minute: 30 per minute maximum with Pywikibot, otherwise around 5 edits per minute (or less) when substing templates manually.

Overall procedure

[edit]
  1. AugPi: check conjugation table (no actual editing here unless an error is found) (User:AugPi/Latin)
  2. AugPi: set up (go to /0)
  3. QuasiBot: go! (#Python procedure)

For double verbs

[edit]

(for e.g. adlego)
/0/lemma for the first verb is 'adlego' and (later) for the second verb is 'adlego(2)'.
Let User:QuasiBot/adlego(2)/lemma = 'adlego'
and
User:QuasiBot/adlego(2)/mac = 'adlegō'.

Python procedures

[edit]

(paradigm ft. suscito)

# In Terminal: use ls, cd, pwd to move to ../mybot/pywikipedia directory.
python login.py
# (Log in.)
cd ..
python
from conjdata import *
lemmaX = 'suscito'
stem11 = 'suscit'
stem22 = 'suscitav'
stem33 = 'suscitat'
pagelist0 = pagelist_1st_p0
pagelist1 = pagelist_1st_p1
pagelist2 = pagelist_1st_p2
uploadAll(pagelist0, pagelist1, pagelist2, lemmaX, stem11, stem22, stem33)
# uploadAll returns a list of entry titles which it has skipped (due to their pre-existence).
# For these, manually type or paste: {{subst:User:QuasiBot|suscito|new=0}}.
# Caveat: p=1 for Participle (lemmata).
# For participle forms: manually type or paste: {{subst:User:QuasiBot/part|suscito|new=0}}.
# Caveat: la=0 if there is a Latin>Verb section already.

For double verbs

[edit]

(paradigm feat. edo and edo(2))

# In Xterm: use ls, cd, pwd to move to ../mybot/pywikipedia directory.
python login.py
# (Log in.)
cd ..
python
from conjdata import *
lemmaXa = 'edo'
lemmaXb = 'edo(2)'
stem11a = 'ed'
stem22a = 'ed'
stem33a = 'es'
stem11b = 'ed'
stem22b = 'edid'
stem33b = 'edit'
pagelist0a = pagelist_3rd_p0
pagelist1a = pagelist_3rd_p1
pagelist2a = pagelist_3rd_p2
pagelist0b = pagelist_3rd_p0
pagelist1b = pagelist_3rd_p1
pagelist2b = pagelist_3rd_p2
uploadAllDouble(pagelist0a, pagelist1a, pagelist2a, lemmaXa, stem11a, stem22a, stem33a, pagelist0b, pagelist1b, pagelist2b, lemmaXb, stem11b, stem22b, stem33b) 
# uploadAllDouble returns a list of entry titles which it has skipped (due to their pre-existence). 
# For these, manually type or paste: {{subst:User:QuasiBot/double|edo|edo(2)|new=0}}.
# Caveat: p=1 for Participle (lemmata), and then manual clean up is required (which definitely should be done by AugPi, not QuasiBot).
# For participle forms: manually type or paste: {{subst:User:QuasiBot/part|edo|new=0}} or {{subst:User:QuasiBot/part|edo(2)|new=0}} depending on which verb it belongs to.
# Caveat: la=0 if there is a Latin>Verb section already.

Esperanto verbs

[edit]

(feat. ĉarmi)

python login.py
# (log in)
cd ..
python
from eoconjdata import *
list = list_active_and_passive
stem = u'\u0109arm'
upload(list, stem)

Interlingua verbs

[edit]

(feat. scriber)

python login.py
# (log in)
cd ..
python
from iaconjdata import *
upload(list_er, 'scrib')

Ido verbs

[edit]
python login.py
# (log in)
cd ..
python
from ioconjdata import *
upload(list_active_and_passive, 'kolekt')

(list_active_only for intransitive verbs)

Bash procedures

[edit]

Adding glosses

[edit]

(for colligo(2))

bash gloss_all_1st "colligo(2)" colligo colligō collig colligav

(for quaero)

bash gloss_all_3rd quaero quaero quaerō quaer quaesiv

Adding count page (if missing)

[edit]

(paradigm feat. Esperanto verb provi)

sed 's/*/prov/g' eo_conj_template > provi.txt
# more provi.txt  # (preview)
bash count_page_verb provi.txt

Changing Esperanto verbal participles to adjectival participles

[edit]

(ft. feki)

bash eopartverb fek

Python code (so far): file conjdata.py

[edit]

/conjdata.py

/eoconjdata.py

/iaconjdata.py

/ioconjdata.py

Bash code

[edit]

/glossify

/gloss_all_1st

/gloss_all_2nd

/gloss_all_3rd

/gloss_all_4th

/gloss_all_4th_nopass

/count_page_verb

/eopartverb2adj

/eopartverb

Templates

[edit]

/eo_conj_template

Python & Emacs cribsheets

[edit]

/Python

/Emacs

Pywikibot help, reference

[edit]

History

[edit]

Brand new account, so currently I will just be importing (and adapting) all the necessary templates from user AugPi (talkcontribs). — This unsigned comment was added by QuasiBot (talkcontribs) at 2010-07-09T18:46:19.

Well, that seems to be mostly done, so now QuasiBot is in testing phase. QuasiBot 15:11, 10 July 2010 (UTC)

So far, so good... Two more tenses to test and then the testing phase will be over. QuasiBot 18:32, 16 July 2010 (UTC)

Testing phase is over. Tests done:

servo (1st conjugation)

deleo (2nd conjugation)

verto (3rd conjugation)

condio (4th conjugation)

cupio (3rd-IO conjugation)

sedeo (2nd-nopass conjugation)

placeo (2nd-nopass conjugation)

loquor (3rd-depon conjugation)

disco (3rd-nopass conjugation)

Result: bot works as intended, pretty much. QuasiBot 02:11, 21 July 2010 (UTC)

This bot has been approved (surprise!), so I'm moving in and "setting up shop." There have been new developments since the last time I was here, so templates all need to be rethought, reconfigured. —QuasiBot (t) 16:10, 10 August 2010 (UTC)

AutoFormat hasn't yet responded to my latest round of fugio edits. 'Tis strange. —QuasiBot (t) 04:49, 11 August 2010 (UTC)

MewBot includes {{count page}} templates automatically: see, e.g., the code and history of injecteerden. Perhaps that is what is expected of bots. —QuasiBot (t) 06:09, 11 August 2010 (UTC)

Yes, RU has confirmed the above supposition... On another note: I've been "running" down DISTRIB pages again (as I had originally proposed (on this page when I requested bot status on Beer Parlour)). —QuasiBot (t) 22:11, 12 August 2010 (UTC)

The Lupin autoedit's autoSave feature is working in Opera (though not in Firefox), so I can run down a DISTRIB page using Opera (...Safari has been mysteriously crashing lately, not always but in a non-deterministic fashion (often enough to be bothersome), when opening or previewing edit windows of Wiktionary articles (though it didn't happen the last time I run down a DISTRIB page using it...)).   AugPi 19:04, 13 August 2010 (UTC)

The reconfiguring phase is, for the most part, over. Now it is just a matter of converting templates to (and updating templates of) different conjugations (probably not all at once, but as they become necessary (for conjugating given verbs)).   AugPi 03:47, 18 August 2010 (UTC)

The core templates are all set up (there are 20 of them) and there is a procedure for generating nopass templates from existing templates, so I have set up a public feed-me page for these garden-variety conjugations...   AugPi 14:48, 20 August 2010 (UTC)

All glossing is now done through a combination of Bash and Pywikibot: no more clicking on the /GLOSS page.   AugPi 01:50, 29 November 2010 (UTC)

Likewise, new entry creation is now mostly done through Python and Pywikibot: no more clicking on the /DISTRIB page.   AugPi 02:06, 29 November 2010 (UTC)

Tested conjugating the Esperanto verb malakcepti.   AugPi 10:46, 8 December 2010 (UTC)

Also tested conjugating the Esperanto verb provi.   AugPi 22:17, 9 December 2010 (UTC)

. . .

The adding-on of the glossing template la-conj-form-gloss was a mistake, so QuasiBot has now started Phase 1 of its removal.   AugPi 23:59, 15 February 2014 (UTC)

Now Phase 2.   AugPi 19:55, 16 February 2014 (UTC)

Procedure/paradigm (outdated, though it still works)

[edit]

/OldProcedure

QuasiBot's subpages

[edit]

QuasiBot's major templates

[edit]

Core templates/conjugations

[edit]
Comments
[edit]
  • verb-mac in the DISTRIB pages is missing for the participles —QuasiBot (t) 03:45, 19 August 2010 (UTC)
This shouldn't be hard to fix (1 regex per DISTRIB page).   AugPi 03:49, 19 August 2010 (UTC)
It's done!   AugPi 06:07, 20 August 2010 (UTC)

Derived (i.e. reduced) templates/conjugations

[edit]

Comments

[edit]
  • Parameter 2 (for the "gloss" templates) works when subst'ing in directly, but it hasn't been set up to be included automatically when creating entries from a DISTRIB page. —QuasiBot (t) 14:51, 18 August 2010 (UTC)
I have got an idea: instead of an optional parameter 2, there would be User:QuasiBot/verb-mac which would ordinarily contain a function which constructs the macronized form of the verb lemma based on available data, i.e. based on User:QuasiBot/verb, {{User:QuasiBot/{{User:QuasiBot/verb}}}}, {{User:QuasiBot/{{User:QuasiBot/verb}}/1}}. But if User:QuasiBot/verb has an irregular lemma, then User:QuasiBot/verb-mac would be replaced by a fixed string: the macronized spelling of the irregular lemma. Then User:QuasiBot/verb-mac would always be includeonly-subst'ed into "gloss" templates, taking in {{{1}}} as its own parameter 1.   AugPi 15:57, 18 August 2010 (UTC)
No: /verb is for direct use only in DISTRIB pages, not in "gloss" templates... because the entry creation templates should take in public variables as parameters and use only hidden constants, no hidden variables.   AugPi 16:09, 18 August 2010 (UTC)
Better idea: /verb-mac would be usually set to 0, and usually not be bothered with... its 0 value would tell the DISTRIB pages to ignore it. But if /verb-mac is not set to 0, then it would contain the macronized form of the irregular lemma. When the DISTRIB page sees this, it sends /verb-mac as parameter 2 to the entry-creation template.   AugPi 16:14, 18 August 2010 (UTC)
It's done!   AugPi 06:08, 20 August 2010 (UTC)

Old school core templates

[edit]

New templates (not listed above)

[edit]

QuasiBot's coordinating templates

[edit]

QuasiBot's set-up/preparation templates

[edit]

QuasiBot's steering wheel [OBSOLETE now]

[edit]


[edit]