Giter Club home page Giter Club logo

syosetsu-kanji-analyzer's Introduction

Syosetsu Kanji Analyzer

This is a Python project i made for fun that scrapes a Japanese novel from syosetsu, extracts all the kanji from the text, sorts them by frequency, looks up their meanings and readings using KanjiApi.dev, and creates an Anki deck for learning them.

Requirements

  • Python 3
  • Requests
  • BeautifulSoup
  • CSV

Usage

Run the main.py file and follow the menu options:

  1. Scrape Ncode: Enter the fiction code and chapter number of the novel you want to scrape. The text will be saved in a file called text.txt.
  2. Extract Japanese words and kanji from a text file: Enter the name of the text file you want to extract kanji from. The kanji will be saved in a file called just_kanji.txt.
  3. Sort Japanese words and kanji by frequency: Enter the name of the kanji file you want to sort by frequency. The sorted kanji will be saved in a file called sorted_kanji.csv.
  4. Lookup Kanji: This will lookup the meanings and readings of the kanji in the sorted_kanji.csv file using KanjiApi.dev and save them in a file called kanji_with_meanings.csv.
  5. Not implemented yet

TODO(s)

  • Lookup novel using title instead of code
  • Select chapter based on title
  • Feature set for words
  • Anki deck!

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

syosetsu-kanji-analyzer's People

Contributors

bwored avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.