Module talk:zh/data/dial-syn

Hello, you have come here looking for the meaning of the word Module talk:zh/data/dial-syn. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module talk:zh/data/dial-syn, but we will also tell you about its etymology, its characteristics and you will know how to say Module talk:zh/data/dial-syn in singular and plural. Everything you need to know about the word Module talk:zh/data/dial-syn you have here. The definition of the word Module talk:zh/data/dial-syn will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule talk:zh/data/dial-syn, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

Dialectal Synonyms Category

@Justinrleung Hey, I was wondering, maybe we could have a category for all the dialectal synonyms chart that we have in Chinese, so that it would be convenient to see a complete list of all the charts made. Is that possible? --Mar vin kaiser (talk) 09:00, 28 April 2021 (UTC)Reply

@Mar vin kaiser This is the full list, I think. @Erutuon, I'm not familiar with how the list on the documentation is generated. How should we keep that updated? — justin(r)leung (t...) | c=› } 14:28, 28 April 2021 (UTC)Reply
I'd generated the list by running a command (which is in the wikitext of the page) on the all-titles dump file and copying the result over. But here is a Pywikibot script that does it a little more easily:
import regex as re # https://pypi.org/project/regex/
from pywikibot import Site, Page
from pywikibot.pagegenerators import PrefixingPageGenerator

en_wiktionary = Site("en", fam = "wiktionary")

matches = 
for page in PrefixingPageGenerator(prefix = "Module:zh/data/dial-syn/", site = en_wiktionary):
    match = re.search(r"/(\p{Han}.*)$", page.title())
    if match:
        matches.append(match)

page = Page(en_wiktionary, title = "Module:zh/data/dial-syn/documentation")
list = "\n".join(matches)
page.text = re.sub(r"(?s)(<!--\s*start\s*list\s*-->).*?(<!--\s*end\s*list\s*-->)", rf"\1\n{list}\n\2", page.text, count = 1)
page.save(summary = "update list (bot)", minor = False)
Eru·tuon 21:09, 28 April 2021 (UTC)Reply