From 80d1735a6bd7f79ed338840c237a47adcc6006ca Mon Sep 17 00:00:00 2001
From: KovachevBot <86124720+KovachevBot@users.noreply.github.com>
Date: Sun, 20 Jun 2021 16:06:26 +0100
Subject: [PATCH] Final form of bot before submission
Expanded functionality of the bot to create derived forms for multiple etymologies at a time; created a loop to iterate over all lemmas in the category for "Bulgarian nouns". Probably various other improvements that I cannot recall, however.
---
test.py | 283 +++++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 218 insertions(+), 65 deletions(-)
diff --git a/test.py b/test.py
index 10187b0..45d4e21 100644
--- a/test.py
+++ b/test.py
@@ -1,37 +1,57 @@
import pywikibot
import mwparserfromhell
import wikitextparser
+import os
-PAGENAME = "къща"
-#PAGENAME = "кукла"
+numbers = {
+ "singular": "s",
+ "plural": "p",
+}
+
+forms = {
+ "indefinite": "indef",
+ "definite": "def",
+ "definite
(subject form)": "sbjv",
+ "definite
(object form)": "objv",
+ "vocative form": "voc",
+ "count form": "count"
+}
+# Connect to Wiktionary (according to user profile)
site = pywikibot.Site()
-page = pywikibot.Page(site, PAGENAME)
-print(f"FETCHED: {PAGENAME}")
+
+"""Returns a list of dictionaries; each dictionary looks like this:
+{ "lemma":
+ "forms": {
+