Skip to content

christopher-chandler/bulk_generate_japanese_vocab_frequency

Repository files navigation


Logo

Version MIT License update

Stargazers

Windows Mac

Bulk Generate Japanese Vocab Frequency

Add frequency to Japanese vocab cards

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

(back to top)

This add-on will generate the frequency ranking for the provided Japanese vocab field The frequency ranking is generated from the same frequency database of the Rikai-Sama,i.e., JMDict firefox add-on.

Built With

This project is written in pure python and the respective Anki libraries.

anki~=2.1.54
aqt~=2.1.54

(back to top)

Getting Started

To get to started, you have to install the add-on through Anki. You can also install it via the files provided on Github.

Prerequisites

You must set the variables of the config.json

{
    "freq_dict": "",
    "01_note_type": "Japanese",
    "02_vocab_input_field": "Target Word",
    "03_frequency_output_field": "Frequency Ranking",
    "04_overwrite_destination_field": true
}
  • freq_dict: The path of the frequency dictionary. It is coupled with the add-on and is located in the project directory. You only need to copy the path of the standard dictionary or the one you provide.
  • 01_note_type The name of the note type which contains the vocab for which the frequency rate should be determined.
  • 02_vocab_input_field The field that contains the target word
  • "03_frequency_output_field" The field where frequency rating should be saved.
  • 04_overwrite_destination_field Overwrite frequency value of the output filed (automatically set to true)

Installation

There are two ways to install this add-on:

  • Add the add-on via anki using the code 1004691625
  • Install the add-on via the files provided on Github.

(back to top)

Usage

For example, if you have a card with the vocab 頬杖, then the frequency ranking of "14962" will be appended to the chosen destination field.

What does this frequency number mean?

  • If a word has a frequency of 1563, it means that 1562 words are more frequent than it.

  • Frequency number 1-5000 = very common, 5001-10000 = common, 10001-20000 = rare, 20001+ = very rare

  • Frequencies are based on analysis of 5000+ novels. Naturally, frequency based on other mediums (such as newspapers) might vary.

  • Not all words have frequency information. It is possible for multiple words to share the same frequency.

  • More info in Rikai-Sama Add-on or its frequency ranking can be found on

  • his site at http://rikaisama.sourceforge.net/

  • You can also reference to the original project https://ankiweb.net/shared/info/1612642956

(back to top)

Example

  1. open the Anki-add on and insert the data into the necessary fields.

  2. Go to the cards that correspond to the data you entered.

  3. Highlight the cards that should have their frequency fields filled.

  4. Then open the Edit menu in the browser menu and click on Bulk Generate Japanese Frequency

Roadmap

  • Add Jmdict support

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

The licensing information of the project upon which this add-on is based.

For those asking for the License permission, 
it's WTFPL. So please feel free to modify/re-upload 
a better version whenever you like.

Therefore, this project is distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Christopher Chandler - christopher.chandler@outlook.de

Project Link: https://github.com/christopher-chandler/Bulk_Generate_Japanese_Vocab_Frequency

(back to top)

Acknowledgments

  • @author: Myxoma (original creator)

(back to top)

About

An Anki add-on for adding the word frequency to the Japanese words in a specific deck.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages