GithubHelp home page GithubHelp logo

character_complexity's Introduction

character_complexity

Ranking CJK characters according to stroke and radical complexity

Context: When teaching/learning Chinese characters, there is a tradeoff between necessity and complexity. Some basic words (谢谢, 跳舞)are represented by some rather difficult characters for a beginner. On the other hand, some less relevant characters from a beginner's vocabulary perspective are not only simpler, but also represent buiding blocks for more complex characters (目,木,口,土).

In this project, I tried to come up with a way to rank Chinese characters according to difficulty (complexity), while at the same time weighing them according to frequency (necessity).

The result is in finaltable.xlsx

The code is in Hanzi.ipynb

For character decompositions (cjk_decomp_full.py), I referred to

https://archive.codeplex.com/?p=cjkdecomp

For the 1,000 most frequent characters (1000freq.csv, frequent_characters.py), I referred to data from

https://lingua.mtsu.edu/chinese-computing/statistics/char/list.php?Which=MO

The formula I used for ranking character by easiness was:

sum(F_i)/C**2

where F_i is the frequency count for each stroke and radical, and C is stroke and radical count. Note that the numerator is linear, while the denominator is exponential - I decided to penalize characters exponentially for having a high stroke count. Of course, if you want to calculate the complexity, just take the inverse.

character_complexity's People

Contributors

r-pessoa 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.