Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cxxxr/cl-gimei
https://github.com/cxxxr/cl-gimei
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cxxxr/cl-gimei
- Owner: cxxxr
- License: mit
- Created: 2018-03-16T08:36:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T08:26:20.000Z (over 6 years ago)
- Last Synced: 2024-12-18T00:37:23.140Z (6 days ago)
- Language: Common Lisp
- Size: 155 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cl-gimei
[![Build Status](https://travis-ci.org/cxxxr/cl-gimei.svg?branch=master)](https://travis-ci.org/cxxxr/cl-gimei)Common Lisp port of [gimei](https://github.com/willnet/gimei)
random Japanese name and address generator## Usage
```common-lisp
(let ((name (gimei:make-name)))
(hiragana name) ;=> "さいとう はるな"
(katakana name) ;=> "サイトウ ハルナ"
(kanji (last-name name)) ;=> "斎藤"
(hiragana (last-name name)) ;=> "さいとう"
(katakana (last-name name)) ;=> "サイトウ"
(kanji (first-name name)) ;=> "陽菜"
(hiragana (first-name name)) ;=> "はるな"
(katakana (first-name name))) ;=> "ハルナ"(let ((male (gimei:make-male)))
(malep male) ;=> t
(femalep male)) ;=> nil(let ((female (gimei:make-female)))
(malep female) ;=> nil
(femalep female)) ;=> t(let ((address (gimei:make-address)))
(kanji address) ;=> 岡山県大島郡大和村稲木町
(hiragana address) ;=> おかやまけんおおしまぐんやまとそんいなぎちょう
(katakana address) ;=> オカヤマケンオオシマグンヤマトソンイナギチョウ
(kanji (prefecture address)) ;=> 岡山県
(hiragana (prefecture address)) ;=> おかやまけん
(katakana (prefecture address)) ;=> オカヤマケン
(kanji (city address)) ;=> 大島郡大和村
(hiragana (city address)) ;=> おおしまぐんやまとそん
(katakana (city address)) ;=> オオシマグンヤマトソン
(kanji (town address)) ;=> 稲木町
(hiragana (town address)) ;=> いなぎちょう
(katakana (town address))) ;=> イナギチョウ
```## License
MIT