玛嗒玛嗒

制作自定义词库

店里的菜单、同学和老师的名字、专业术语、游戏角色,内置词库里没有的词,可以做成自己的词库导入玛嗒玛嗒。词表是纯文本,一行一个词,交给 AI 整理最省事,自己写也可以。

导入后怎么打

# 拉面店打工
店長 | てんちょう | pinyin: dianzhang
ポイントカード | english: point card
エリンギ | chinese: 杏鲍菇 | pinyin: xingbaogu
仕込む | しこむ | pos: v5m
  • 打罗马字 tenchou、假名てんちょう或拼音 dianzhang,都会出「店長」;用拼音打时,候选上方标出读音てんちょう。
  • 打 pointcard,出「ポイントカード」。
  • 打 xingbaogu,出「エリンギ」,候选上方显示「杏鲍菇」。
  • 长按「仕込む」,可以换成仕込みます、仕込んだ等变形和敬语。

所以读音一定要准,拼音、英语和词性能填就填上。

让 AI 帮你做

请按下面这份说明,帮我制作一个玛嗒玛嗒自定义词库。

Madamada Word List: instructions for AI assistants

You are helping someone make a custom dictionary for Madamada (玛嗒玛嗒,
マダマダ), an iOS Japanese keyboard for native Chinese speakers. In Madamada
people type Chinese pinyin to get Japanese kanji, English to get katakana,
and romaji or kana as on any Japanese keyboard. A custom dictionary adds
their own words: the names of people they know, their shop's menu, the terms
of their major, the characters of a game they play.

Your job: talk with them, collect the right words, and deliver one plain-text
word list in the format below. They paste it into the app (词库 > 自定义 >
导入 in Chinese, 辞書 > カスタム > 読み込む in Japanese) and every word works
at once.

Language: talk to the user in the language they write to you in, usually
Chinese or Japanese, for every question and answer. Only the format's keys
(pinyin, english, chinese, pos, priority) stay in English.


== What a word does in the keyboard ==

With this line in the list:

  店長 | てんちょう | pinyin: dianzhang

- typing tenchou in romaji, or てんちょう in kana, offers 店長;
- typing the pinyin dianzhang offers 店長, with its reading てんちょう shown
  above it.

With `english: point card`, typing pointcard offers ポイントカード. With

  エリンギ | chinese: 杏鲍菇 | pinyin: xingbaogu

typing xingbaogu offers エリンギ with 杏鲍菇 shown above it, where the
reading usually goes; the same works for loanwords (チャーシュー with
`chinese: 叉烧 | pinyin: chashao`). With `pos: v1` on a verb, holding the
candidate lets the user pick its conjugations and polite forms. So the
reading must be exactly right, and pinyin, english and pos are worth adding
wherever they apply.


== Steps ==

1. Ask what they need

   Before collecting anything, ask in one short message:
   - the topic, and what they will be typing it for (for example "my
     part-time job at a ramen shop", "my classmates' names", "the terms
     of my major");
   - roughly how many words (suggest 50 to 300) and anything that must be in
     or left out;
   - any material they already have: a list, a menu, a class roster, text
     from a screenshot. Their own material comes first.
   If their first message already answers this, go straight to step 2. Ask
   again later only when something is truly unclear.

2. Collect the words

   - Start from their material, then add what the topic needs. If you can
     search the web, use it for names, product names, place names and
     anything you are not sure of.
   - Every word must be real and used in Japan, in the written form Japanese
     people use. Never invent a word, a reading or a Chinese name. If you
     cannot confirm one, leave it out, or ask.
   - Readings are where mistakes happen. Names often read irregularly
     (東海林 is しょうじ); check each one. If a name has several readings and
     you cannot tell which one they mean, ask, or give one line per reading.
   - Include what they will actually type: the full form and the common short
     form (スマートフォン and スマホ), verbs and adjectives in their dictionary
     form (食べる, not 食べます).

3. Write the list in the format below.

4. Check every line before you answer, and fix what fails:
   - The first line is `# ` and the list's name.
   - Every other line is a word line, a blank line, or a `#` comment.
   - Each reading is the real reading of that word, in hiragana. Read every
     kanji word's reading once more.
   - No value contains `|`, an ASCII comma `,` or a double quote `"`.
   - Each pinyin and english value is letters only, 2 to 40 letters once
     spaces are removed.
   - Each pos is from the table and fits the reading's ending.
   - Each priority is a whole number from 1 to 9999.
   - No line repeats another; every word is one you could confirm.
   If you can run code, write a short script for these checks and run it.

5. Deliver

   - Put the whole list in ONE code block, with nothing else inside it.
   - After the block, in the user's language: how many words it has, and how
     to import it: copy the block, then in Madamada open 词库 > 自定义 > 导入 >
     粘贴 (辞書 > カスタム > 読み込む > ペースト). A saved .txt file works too:
     导入 > 选择文件 (読み込む > ファイルを選ぶ), or share the file to Madamada.
   - More than about 300 words: if you can create files, offer a .txt file to
     download. Otherwise split the list into parts of about 300 words, each
     a complete list with its own name line (for example "拉面店打工 1",
     "拉面店打工 2"); each part is imported on its own.
   - Then answer their questions and make the changes they ask for, in their
     language, giving the whole updated list again each time.


== Format ==

  # 拉面店打工
  店長 | てんちょう | pinyin: dianzhang
  山田 | やまだ | pinyin: shantian | priority: 9000 | note: 店长
  替え玉 | かえだま
  まかない
  チャーシュー | chinese: 叉烧 | pinyin: chashao
  ポイントカード | english: point card
  仕込む | しこむ | pos: v5m
  濃い | こい | pos: adj-i

The file

- Plain UTF-8 text, one word per line.
- The first line is `# ` and the list's name, in the user's language, at most
  40 characters.
- Blank lines are fine. Any later line starting with `#` is a comment; you
  may use comments as section headings.
- No header row, no line numbers, no quotes around values.
- At most 100,000 words, 1,024 bytes per line and 8 MB. The app keeps up to
  20 custom dictionaries.

A word line

  word | reading | key: value | key: value ...

- Fields are separated by `|`. The first is the word, the second its
  reading; the rest are `key: value` pairs, in any order.
- pinyin and english may appear more than once on a line. A word with two
  readings takes two lines.
- Any other field is ignored, so `note: ...` can carry a short note.

word (required)
  How the word is written, exactly as it should appear. At most 32
  characters. No `|`, ASCII comma or double quote, and it must not start with
  `=`, `+`, `-` or `@`.

reading (required, except for a word written only in kana)
  Its Japanese reading in hiragana; the long vowel mark ー is allowed (らーめん).
  No spaces, romaji or kanji, at most 32 characters. Leave the reading out
  only when the word is written entirely in kana (まかない, チャーシュー);
  the word itself is then the reading. A word with any other character (漢字,
  ・, letters, digits) needs its reading.

pinyin: (optional, may repeat)
  The pinyin a Chinese speaker would type for this word. Give it in two cases:
  - The word is written only in kanji (々 counts), 2 to 6 of them: write the
    Mandarin reading of each character, with Japanese forms turned into their
    simplified Chinese ones: 店長 > 店长 > dianzhang, 駅前 > 驿前 > yiqian,
    新宿 > xinsu. A character with two common readings gets two pinyin
    fields (錦糸町: jinsiding, jinsiting).
  - The line has a `chinese:` name: write that name's pinyin
    (杏鲍菇 > xingbaogu).
  Otherwise leave it out; never write the Japanese reading in romaji here.
  No tones, ü is v (女性 > nvxing). 2 to 40 letters; spaces and tone marks
  are tolerated and removed.

english: (optional, may repeat)
  An English word or phrase that should also bring up this word. Give it for
  katakana words borrowed from English, as their English source
  (ポイントカード: point card, アイスクリーム: ice cream). Leave it out for
  loanwords from other languages (アルバイト), made-in-Japan English
  (サラリーマン) and words whose sense you are unsure of. 2 to 40 letters once
  spaces, hyphens and other marks are removed.

chinese: (optional, once per line)
  The usual Simplified Chinese name of the same thing, shown above the
  candidate when the user typed its pinyin. Give it when the Japanese is
  written in a way a Chinese reader would not recognise: katakana names and
  loanwords (ニューヨーク: 纽约, チャーシュー: 叉烧), or kanji that mean
  something else in Chinese. For a character, work or place from anime,
  games or books, use the name of the mainland Chinese release, or else the
  name Chinese fans most commonly use. Only a name you are sure of; with it,
  give its pinyin. A thing with two common Chinese names takes one line per
  name, each with its own pinyin (マグロ: 金枪鱼 jinqiangyu, and 吞拿鱼
  tunnayu). Same character rules as word.

pos: (optional, once per line)
  The part of speech. Leave it out for nouns, names and phrases. Give it for
  verbs and adjectives so their conjugations work; the reading must end as
  the table says, or the line is rejected.

  v1      ichidan verb: reading ends in る after an い- or え-row kana
          (食べる, 起きる)
  v5k v5g v5s v5t v5n v5b v5m v5r v5u
          godan verb ending in く ぐ す つ ぬ ぶ む る う (書く: v5k, 仕込む: v5m)
  vk      来る and verbs ending in くる
  vs      a noun that takes する, written without する (勉強)
  adj-i   い-adjective: reading ends in い (濃い)
  adj-na  な-adjective, written without な (静か)
  adv     adverb
  prt     particle
  other   interjections, set phrases, anything else
  n       noun (the default)

priority: (optional, once per line)
  1 to 9999, default 5000; higher comes first among words read the same way.
  9000 or more puts the word before common words with its reading (the
  user's own name, their shop's name); below 5000 puts it after them.

导入词表

AI 会先问你要做什么词库,再搜集、整理、逐行检查,最后把词表放在代码块里给你。复制词表,在 App 的「词库 › 自定义」点「导入 › 粘贴」。AI 给的是 .txt 文件时,点「导入 › 选择文件」,或者在其他 App 里分享给玛嗒玛嗒。

词表格式

# 拉面店打工
店長 | てんちょう | pinyin: dianzhang
山田 | やまだ | pinyin: shantian | priority: 9000 | note: 店长
替え玉 | かえだま
まかない
チャーシュー | chinese: 叉烧 | pinyin: chashao
ポイントカード | english: point card
仕込む | しこむ | pos: v5m
濃い | こい | pos: adj-i
  • UTF-8 纯文本,一行一个词。最多 10 万词,每行不超过 1024 字节,整个文件不超过 8 MB。
  • 第一行是 # 加词库名称,最多 40 个字。之后以 # 开头的行是注释,可以当小标题用;空行也没关系。
  • 不要表头和行号,值两边不加引号。
  • 每行用 | 隔开,先写词,再写平假名读音,后面是 键: 值,顺序随意。全角的 | 和 : 也能识别。不认识的键会被忽略,可以用 note: 写备注。
  • 一个词有两个读音,就写成两行。pinyin 和 english 可以在一行里写多次,chinese、pos、priority 每行只写一次。
字段 写什么
词(必填) 词的写法,和上屏时完全一样,最多 32 个字
读音 平假名,可以用长音ー(らーめん),最多 32 个字;只用假名写的词可以不写
pinyin: 中文母语者会打的拼音,见下文
english: 英语原词,见下文
chinese: 简体中文名,用拼音打出时显示在候选上方
pos: 词性,见下文
priority: 优先级,1 至 9999,默认 5000

词和中文名最多 32 个字,不能有 |、半角逗号和双引号,也不能以 =、+、-、@ 开头。读音里不能有空格、罗马字和汉字。词里只要有假名以外的字(汉字、・、字母、数字),就要写读音。

拼音怎么写

两种情况写 pinyin::

  • 词全部是汉字(々 也算),2 到 6 个字:按每个字的普通话读音写,日本字形先换成简体。店長 → 店长 → dianzhang,駅前 → 驿前 → yiqian,新宿 → xinsu。一个字有两种常见读音时写两个 pinyin:,比如錦糸町写 jinsiding 和 jinsiting。
  • 这一行有 chinese::写中文名的拼音,杏鲍菇 → xingbaogu。

其他情况不写,也不要把日语读音的罗马字写进来。不带声调,ü 写成 v(女性 → nvxing),2 到 40 个字母;空格和声调符号会自动去掉。

英语与中文名

english: 只给来自英语的片假名词,写它的英语原词:ポイントカード写 point card,アイスクリーム写 ice cream。来自其他语言的外来语(アルバイト)、和制英语(サラリーマン)和拿不准意思的词不写。只写字母和空格,去掉空格后是 2 到 40 个字母。

chinese: 写这个东西通常的简体中文名,用拼音打出时显示在候选上方,也就是平时显示读音的位置。日文写法让中文读者认不出来时才需要它:片假名的人名、地名和外来语(ニューヨーク:纽约,チャーシュー:叉烧),或者在中文里意思不一样的汉字词。动漫、游戏和书里的角色、作品和地名,用中国大陆的官方译名,没有就用中文粉丝最常用的叫法。

只写有把握的中文名,写了就配上它的拼音。有两个常见中文名时写成两行,各配拼音:マグロ写金枪鱼 jinqiangyu 和吞拿鱼 tunnayu 两行。

词性

动词、形容词和能接する的名词写上 pos:,长按才能换变形和敬语。一般名词、人名和短语不用写。读音的结尾要和词性对得上,否则这一行会被跳过。

pos 用在哪里
v1 一段动词,读音以る结尾,る前面是い段或え段假名:食べる、起きる
v5k v5g v5s v5t v5n v5b v5m v5r v5u 五段动词,读音依次以く、ぐ、す、つ、ぬ、ぶ、む、る、う结尾:書く是 v5k,仕込む是 v5m
vk 来る,以及以くる结尾的动词
vs 能接する的名词,不写する:勉強
adj-i い形容词,读音以い结尾:濃い
adj-na な形容词,不写な:静か
adv 副词
prt 助词
other 感叹词、固定说法等
n 名词,不写时默认是它

优先级

priority: 是 1 至 9999 的整数,默认 5000。读音相同的词,数值大的排在前面。9000 以上会排在同读音的常用词前面,适合自己的名字和店名;低于 5000 则排在常用词后面。

AI 的步骤

AI 照下面几步做,全程用用户的语言回答,只有格式里的键名(pinyin、english、chinese、pos、priority)照原样写,不翻译。

  1. 先用一条简短的消息问清楚:词表做什么用(比如「拉面店打工」「同学的名字」「专业术语」),大概要多少词(建议 50 到 300),有没有一定要收或不要收的词,手上有没有名单、菜单或截图里的文字。用户第一句话已经说清楚的,直接开始;之后只在真的不清楚时再问。

  2. 先用用户给的材料,再补这个主题需要的词。能上网就查人名、商品名、地名和拿不准的词。每个词都要是日本真实在用的词,用日本人的写法。不编造词、读音和中文名,确认不了就不收,或者问用户。人名读音常常不规则(東海林读しょうじ),要逐个核对;有几种读法又判断不了时,问用户,或者每种读法写一行。完整说法和常用简称都收(スマートフォン和スマホ),动词和い形容词用辞书形(食べる,不是食べます),能接する的名词不带する(勉強),な形容词不带な(静か)。

  3. 按上面的格式写成词表,词库名称用用户的语言。

  4. 给用户之前逐行检查,有问题就改:

    • 第一行是 # 加词库名称。
    • 其余每行只能是词行、空行或 # 注释。
    • 写了读音的,读音是这个词真正的读音,用平假名;汉字词的读音再核对一遍。
    • 值里没有 |、半角逗号和双引号。
    • pinyin 和 english 去掉空格后是 2 到 40 个字母。
    • pos 在上面的表里,并且和读音的结尾对得上。
    • priority 是 1 至 9999 的整数。
    • 没有重复的行,每个词都确认过。

    能运行代码的话,写个小脚本把这些检查跑一遍。

  5. 一份词表放进一个代码块,代码块里不放别的。代码块后面用用户的语言说明一共多少词、怎么导入:复制代码块,在玛嗒玛嗒里打开「词库 › 自定义 › 导入 › 粘贴」(日语界面是「辞書 › カスタム › 読み込む › ペースト」);存成 .txt 文件的,点「导入 › 选择文件」(「読み込む › ファイルを選ぶ」),或者在其他 App 里分享给玛嗒玛嗒。超过 300 词时,能生成文件就提供 .txt 下载;不能就拆成每份 300 词左右的几份,每份都是完整的词表,有自己的名称行(如「拉面店打工 1」「拉面店打工 2」),各放一个代码块,分别复制、导入。之后按用户的要求修改,每次都给出完整的新词表。

常见问题

导入时提示跳过了几行? 有问题的行不会导入,玛嗒玛嗒会告诉你是第几行、什么原因。把提示发给 AI 让它改,或者自己改好后重新导入。

想改词表里的词? 把要改的地方告诉 AI,它会给出完整的新词表。重新导入会多出一个词库,把旧的删掉就好。

能分享给朋友吗? 词表就是一段文字,发给对方,在玛嗒玛嗒里导入就能用。

下一篇生词本与复习

会拼音,就能打日语

在 App Store 下载

在浏览器中打开

微信里打不开 App Store。点右上角「···」,选择「在默认浏览器中打开」,再点下载。