Wiktionary:Votes/bt-2023-02/User:Huhu9001Bot for bot status

From Wiktionary, the free dictionary
Jump to navigation Jump to search

User:Huhu9001Bot for bot status[edit]

Nomination: I hereby request the Bot flag for User:Huhu9001Bot for the following purposes:

Remove |kyu= from Japanese headword templates
Powered by pywikibot v8.1.0
import pywikibot
import pywikibot.pagegenerators
import re

pgf = pywikibot.pagegenerators.GeneratorFactory(site = pywikibot.Site('en','wiktionary'))
pgf.handle_args([
    '-transcludes:Template:tracking/ja-headword/kyu',
    r'-titleregex:[亜悪圧囲医為壱隠栄営衛駅円塩縁艶応欧殴桜奥横温穏仮価画会絵壊懐概拡殻覚学岳楽渇缶巻陥勧寛関歓観気帰亀偽戯犠旧拠挙虚峡挟狭郷暁区駆勲薫径茎恵掲渓経蛍軽継鶏芸撃欠研県倹剣険圏検献権顕験厳戸広効恒黄鉱号国黒済斎砕剤雑参桟蚕惨賛残糸歯児辞湿実写釈寿収従渋獣縦粛処緒叙将称渉焼証奨条状乗浄剰畳縄壌嬢譲醸触嘱真寝慎尽図粋酔穂随髄枢数瀬声斉静窃摂専浅戦践銭潜繊禅双壮争荘捜挿巣曽痩装総騒増蔵臓即属続堕対体帯滞台滝択沢担単胆団断弾遅痴虫昼鋳庁徴聴鎮逓鉄点転伝灯当党盗稲闘徳独読届弐悩脳覇拝廃売麦発髪抜晩蛮秘浜瓶払仏併並餅辺変歩宝豊褒翻毎万満麺黙弥訳薬与予余誉揺様謡来頼乱覧竜両猟緑涙塁礼励戻霊齢暦歴恋錬炉労郎楼録湾亘凜尭巌桧槙祢祷禄穣遥唖頴鴎撹麹鹸噛繍蒋醤掻祷桝屏并蝋沪芦弯]',
])
pg = pgf.getCombinedGenerator()

count = 5
def funRepl(m):
    global count
    count = count - 1
    print(m.group(2))
    return m.group(1)[:-1] + m.group(3)

for p in pg:
    if count <= 0: break
    print(p)
    p.text = re.sub(r'({{ja-(?:noun|verb|verb-suru|adj|pos|phrase)\|(?:[^{}]*\|)?)(kyu=[^{|}]+?)((?:\|[^{}]*)?}})', funRepl, p.text)
    p.save('remove |kyu=')

Schedule:

Discussion:

Support[edit]

  1. Support: I think we stand to gain from more good-faith editors running bots, and in this case they've done their homework. — excarnateSojourner (talk · contrib) 03:51, 28 February 2023 (UTC)[reply]
  2. Support: no longer my edit summary has "kyu" added reflecting this kind of change. Also, suggesting a name change of the "Huhu9001" rootname to something more fitting. ~ POKéTalker(==) 05:32, 28 February 2023 (UTC)[reply]
  3. SupportFish bowl (talk) 20:30, 28 February 2023 (UTC)[reply]
  4. Support, seems fine after reading the linked discussions. —Al-Muqanna المقنع (talk) 21:06, 28 February 2023 (UTC)[reply]
  5. SupportLugriaルグリア [会話貢献] 22:41, 28 February 2023 (UTC)[reply]
  6. Support – Guitarmankev1 (talk) 01:38, 1 March 2023 (UTC)[reply]
  7. Support --Anatoli T. (обсудить/вклад) 06:24, 1 March 2023 (UTC)[reply]

Oppose[edit]

Abstain[edit]

Decision[edit]

Passed 7-0-0. Pinging @Chuck Entz, Surjection to apply ye flag. Whoop whoop pull up Bitching Betty ⚧️ Averted crashes 02:47, 7 March 2023 (UTC)[reply]