#!/usr/bin/env coffee kanji_words = require "../js/kanji-words" update_jouyou_learning = () -> config = output_path: "data/jouyou-kanji-learning.csv" sort_by_readings: true kanji: include: true include_kanji: true include_meaning: true include_readings: true reading_separator: "/" words: as_column: false include: true include_word: true include_readings: true include_meanings: true limit: 3 meanings_limit: 3 readings_limit: 2 separator: "\n" data_separator: " - " meaning_separator: "; " reading_separator: "/" kanji_words.update_kanji_words_csv config update_jouyou_only_words = () -> config = output_path: "data/jouyou-kanji-only-words.csv" sort_by_readings: false kanji: include: false include_kanji: false include_meaning: false include_readings: false words: as_column: false include: true include_word: true include_readings: true include_meanings: true limit: 3 meanings_limit: 3 readings_limit: 2 separator: "\n" data_separator: " - " meaning_separator: "; " reading_separator: "/" kanji_words.update_kanji_words_csv config update_jouyou_with_words = () -> config = output_path: "data/jouyou-kanji-with-words.csv" sort_by_readings: false kanji: include: true include_kanji: true include_meaning: true include_readings: true words: as_column: true include: true include_word: true include_readings: true include_meanings: true limit: 3 meanings_limit: 3 readings_limit: 2 separator: "\n" data_separator: " - " meaning_separator: "; " reading_separator: "/" kanji_words.update_kanji_words_csv config update_jouyou_learning_compact = () -> config = output_path: "data/jouyou-kanji-learning-compact.csv" sort_by_readings: true kanji: include: true include_kanji: true include_meaning: true include_readings: true reading_separator: "/" words: as_column: true include: true include_word: true include_readings: false include_meanings: false limit: 3 meanings_limit: 0 readings_limit: 0 separator: "/" data_separator: " - " meaning_separator: "; " reading_separator: "/" kanji_words.update_kanji_words_csv config update_jouyou_learning_compact = () -> config = output_path: "data/jouyou-kanji-learning-oneline.csv" sort_by_readings: true include_sort_field: true kanji: include: true include_kanji: true include_meaning: true include_readings: true reading_separator: "/" words: as_column: true include: true include_word: true include_readings: true include_meanings: true limit: 3 meanings_limit: 3 readings_limit: 2 separator: "\n" data_separator: " - " meaning_separator: "; " reading_separator: "/" kanji_words.update_kanji_words_csv config update_jouyou_learning() update_jouyou_only_words() update_jouyou_with_words() update_jouyou_learning_compact()