Git Product home page Git Product logo

ezname's Introduction

EZName

Create an easy-to-pronounce and meaningful name from chinese ancient books for newborns

Introduction

This project is inspired by another name-creating project "ReName" (https://github.com/repoog/ReName)

The main features of this program include

  • Generate a name according to the expected date of birth or a specific hour of the mom's due date. If only the date is provided, the program will generate up to N names for each hour of that day. N is a user-defined parameter.
  • The names are picked up from different collections of poems based on the baby's gender. For instance, if it's a boy, the default dictionary is "chuci" (楚辞); if it's a girl, the default source is "shijing" (诗经)
  • The candidate names are all easy-to-pronounce for English speakers because these names' pinyin syllables have low level of difficulty for pronunciation.
  • The name dictionary is extendable. Users can download Sogou cell thesaurus (*.scel) and load them in the program to use as the source of names
  • Optionally, the users can decide if the names need to be scored by its "天格/地格/人格/才格". And if they choose to do so, the candidate names will be given in an descending order of this score.

Installation Instructions

Python3.5 or higher version is recommended. The binary wheels listed below are required to run this program.

  • beautifulsoup4
  • jieba
  • lxml
  • ngender
  • pypinyin
  • requests
  • selenium
  • tkcalendar
  • urllib3

Run the command below to install the required binary wheels

python3 -m pip install -r requirements.txt

Unique Feature

  1. All candidate names are examined by their pinyin syllables. The difficulty of syllables are categorized into four levels according to https://resources.allsetlearning.com/
  • Low
  • Medium
  • High
  • Very High

Only those names with "easy-to-pronounce" (defined by user) pinyin syllables for English speakers are selected.

  1. The name dictionary is extendable. Users can download more Sogou cell thesaurus in *.scel format and convert them to *.txt format for the use of this program. The conversion utility has been integrated with the GUI

  2. The program has built-in name dictionaries including Chuci(楚辞), Shijing(诗经), I-Ching(易经), Lunyu(论语). Switching the name dictionary is available on the top of the GUI or by specifying the optional argument "-i". Run the command line mode to get help.

Usage

  • Run from command line

python3 EZName.py -s 张 -g M -y 2020 -m 5 -d 9 -H 10 -n 70

  • Run GUI

python3 mainGUI.py

image

ezname's People

Contributors

hinfsynz avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

ezname's Issues

Output is hard to interpret

✘ yujue.wang@MBP-0919  ~/python/EZName   master  Python3 EZName.py -s 王 -g M -y 2020 -m 3 -d 30
[] 出生日期:2020年3月30日, 0时
[
] 五行属性:水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 1时
[
] 五行属性:水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 2时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 3时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 4时
[
] 五行属性:水, 金, 木

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 5时
[
] 五行属性:水, 金, 木

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 6时
[
] 五行属性:水, 金, 木

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 7时
[
] 五行属性:水, 金, 木

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 8时
[
] 五行属性:土, 水, 金, 木

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 9时
[
] 五行属性:土, 水, 金, 木

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 10时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 11时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 12时
[
] 五行属性:火, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 13时
[
] 五行属性:火, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 14时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 15时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 16时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 17时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 18时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 19时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 20时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 21时
[
] 五行属性:土, 水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 22时
[
] 五行属性:水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5
[] 出生日期:2020年3月30日, 23时
[
] 五行属性:水, 金

no. of matches = 1
no. of matches = 2
no. of matches = 3
no. of matches = 4
no. of matches = 5

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.