{"id":26883767,"url":"https://github.com/jiro4989/meme","last_synced_at":"2025-08-15T19:13:08.199Z","repository":{"id":80274062,"uuid":"157574009","full_name":"jiro4989/meme","owner":"jiro4989","description":"自作のCLIツールを命名するためのツール","archived":false,"fork":false,"pushed_at":"2020-09-03T12:46:48.000Z","size":1608,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T19:44:19.598Z","etag":null,"topics":["clojure","commandline-interface","executable-jar"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiro4989.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-14T15:59:51.000Z","updated_at":"2021-11-29T12:54:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"1deffca7-63bd-445d-bd1c-97aedc242614","html_url":"https://github.com/jiro4989/meme","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jiro4989/meme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmeme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmeme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmeme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmeme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiro4989","download_url":"https://codeload.github.com/jiro4989/meme/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmeme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270617821,"owners_count":24617122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","commandline-interface","executable-jar"],"created_at":"2025-03-31T17:37:07.895Z","updated_at":"2025-08-15T19:13:08.135Z","avatar_url":"https://github.com/jiro4989.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meme (mei mei)\n\n![test](https://github.com/jiro4989/meme/workflows/test/badge.svg)\n[![codecov](https://codecov.io/gh/jiro4989/meme/branch/master/graph/badge.svg)](https://codecov.io/gh/jiro4989/meme)\n\n自作のCLIツールを命名するためのツール。\n\n## 目的\n\n自作のコマンドやツールを作ったときに名前を考えるのに苦労した。\nLinuxのポピュラーなコマンドには名前の付け方にある程度規則性があるので、それを参\n考に機械的に名前を算出できるようにしたいと考えた。\n\n**重みの付け方はかなりガバガバなんであくまで参考値程度に...**\n\n## 動作環境\n\nJava 10\n\n    openjdk version \"10.0.2\" 2018-07-17\n    OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3)\n    OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)\n\n## 開発環境\n\n- Clojure 1.9.0\n- Leiningen 2.8.1\n- Vim 8.0\n\n## コマンドの例\n\n| cmd   | origin word                      |\n|-------|----------------------------------|\n| su    | switch user                      |\n| sudo  | switch user do                   |\n| cp    | copy                             |\n| mv    | move                             |\n| rm    | remove                           |\n| cat   | concatenate                      |\n| grep  | global regular expression print  |\n| sed   | stream editor                    |\n| ln    | link                             |\n| nl    | number line                      |\n| cut   | cut                              |\n| join  | join                             |\n| ls    | list                             |\n| paste | paste                            |\n\n## Linuxのコマンドの命名種類\n\n- 複数の言葉の先頭文字 (su, sudo, grep, sed)\n- 特定の文字の一部 (cat)\n- 子音のみ (cp, mv, rm, ls, ln)\n- 元のワードそのまま (paste, join)\n\n## 実装\n\n### ロジック\n\n- コマンドの由来となる複数の単語を入力\n- 各コマンドから任意の数のプレフィックスを取得し、総当り組み合わせ\n- 重み付けをしてコマンド名とともに出力\n\n### 重み付け\n\n1. 常用単語(英語)\n1. 発音しやすい(母音を含む)\n1. コマンド名がある程度短い\n\n## 使い方\n\nコマンドの基本的な使い方は以下の通り。\n\n```bash\njava -jar meme-1.0.0-SNAPSHOT-standalone.jar \"global regular expression print\"\n  5:glreexpr\n  5:glrepr\n  5:glrexp\n  5:glrexpr\n  5:grexpr\n  6:glreep\n  6:glreepr\n  6:glreexp\n  6:glrep\n  6:greepr\n  6:greexp\n  6:greexpr\n  6:grepr\n  6:grexp\n  7:greep\n  7:grep\n```\n\nヘルプ\n\n```bash\njava -jar meme-1.0.0-SNAPSHOT-standalone.jar -h\n```\n\n    meme is naming tool like linux commands.\n\n    options:\n      -p, --padding-size int             3  padding size\n      -d, --delimiter str                :  delimiter\n      -r, --round-prefix-chars-size int  2  round prefix characters size\n      -n, --none\n      -h, --help\n\n## License\n\nCopyright © 2018 jiro4989\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fmeme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiro4989%2Fmeme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fmeme/lists"}