Bỏ qua đến nội dung

Kotu Utilities

Chờ xử lý #anki #addon #kotu #utilities
Unknown
25/1/2022

Cách tải addon Kotu Utilities

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

1565434616

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 1565434616 và copy

11
2

Mô tả chi tiết

Use utilities from Kotu on your Anki cards. Kotu uses a combination of UniDic for MeCab and different accent dictionaries and custom parsing strategies. Works on mobile and desktop. Most utilities require internet.

Setup: Use the “Tools” → “Add Kotu Utilities to Note Type” menu to have the script added to a note type.

Collection Includes:

Auto Pitch (Requires Internet) Uses Kotu to parse the sentence and add underlines to the text corresponding to the pitch accent pattern. [pitch: そしてその隣にあるのが僕の部屋だ。]

Auto Visual Pitch (Requires Internet) [vpitch: そしてその隣にあるのが僕の部屋だ。] Uses Kotu to parse the sentence and add overlines / drops to the text corresponding to the contour of the phrase’s pitch taking into account any sentence level changes. Not 100% perfect but on its way there.

Auto Frequency (Requires Internet) Uses Kotu to parse the sentence and add underlines to the text corresponding to the frequency of the word. [frequency: そしてその隣にあるのが僕の部屋だ。]

Manual Pitch Parses the provided text and visually displays the pitch accent with overlines / drops. \ should be placed after the accent drop. ・ should be placed between phrases. ` should be placed before moras with silenced vowels. [mpitch: そ`して・その・となりに・あ\るのが・ぼ\くの・へや\だ。]


Screenshots


Reviews (13)

👍 2025-11-17

awesome, insanely useful and underrated. It’s a shame it was never updated.

I made a version of the setup script that’s easier to use. now you don’t have to wrap [pitch:], [vpitch:], [mpitch:], or [frequency:] around each paragraph of the field for each card manually. You just put it around the field in the card template code editor, like this: [vpitch: {{Sentence}}]

let’s suppose the field {{Sentence}} has: 僕が悪だと? 僕は正義だ! it automatically turns into: ボクガワルダト? ボクワセーギダ! it applies the formatting

👍 2025-11-12

Great! Very useful for learning correct stress accent, automatic features do not use much data so happy to use them and MUCH less effort than manual imnput. Important: no formatting whatsoever is best as input.

👍 2025-02-07

Thx so much, it’s a must have! I’m just hoping that the day it goes down, I won’t need it anymore

👍 2024-09-19

Hi, can anyone explain how to use the utilities? I’ve added the script to my card.

👍 2024-04-06

The fix to make vpitch work.

  1. Get an editor with the ability to do regex find and replace. Notepad++ will do.
  2. Copy the generated JS text from the card template to the editor (starts with <style>)
  3. Open Find and Replace window, enable regex, fill in the following fields: Find: replaceAll(”(.*?)” Replace: replace(/$1/g
  4. Press Replace All, copy the changed text back into the card template.
  5. Restart Anki.

The plugin doesn’t always show the whole sentence when using [pitch]. An example:

👍 2024-03-15

i hope you will continue the development!

👍 2023-11-14

having the devoiced vowel feature is amazing for non native speakers!!!

👍 2023-07-05

Can you add a preference to turn off furigana?

👍 2023-07-05

Doesn’t work if you have any formatting in the field you want to use it on, other than that good. I hope that that will be fixed though.

👍 2023-01-28

bang for your buck

👍 2022-07-29

Great addon!

Everything works fine except for the “vpitch” function, I can’t get it to work on Mac OS (it works fine on Android).

UPDATE

It seems that Anki on MacOS doesn’t support the replaceAll() function. I replaced that to a global replace() function and now it works fine.

👍 2022-03-13

Reggie changed his mind this is pretty good

👍 2022-03-07

Reggie no like this