-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
辞書の管理する仕組み #79
Comments
辞書の典型分類Date: 2017/05/08 Status議論の余地があり Contextprh.ymlを使った場合の辞書には大体の分類が隠れていると思われる。 Decision
Consequencesドメイン固有、固有名詞、表記揺れ(typo)が主な構成要素に見える。 |
https://github.com/proofdict/proofdict |
辞書管理アプリみたいのがあるとよさそう。 |
proofdictの仕組みを元に、もっと一般ユーザーが使える仕組みを作りたい。 既存の辞書(prh)などの問題点はローカルにコピーして使うため、プロジェクトごとに毎回コピーしたりして面倒臭いところ。個人ごとにテンプレ的な辞書はあると思うので、そこを補える形にしたい。 辞書のフォーマットprhをベースにしたもの。
# `id` is unique string
id: 01BQ92YYBEFBXEHH8T8HC8RCRD
# `description` is a short comment
description: 'Reference https://www.ecma-international.org/publications/standards/Ecma-262.htm'
# `expected` is expected result
# `$1` ... `$9` reference `patterns`'s capture word
# This is same behavior with RegExp https://github.com/zeeshanu/learn-regex
expected: ECMAScript $1
# `patterns` are match string or RegExp
# RegExp should be started with `/` and be ended with `/`
# Also, can use `()` for capturing
patterns:
- /ECMAScript([0-9]+)/i
- /ECMA Script([0-9]+)/i
# `specs` are test cases
# `specs[n].from` is actual word
# `specs[n].to` is expected word that is replaced result
specs:
- from: ECMASCRIPT5
to: ECMAScript 5
# `tags` are keywords
# Some `tag` means special meaning
tags:
- noun
- JavaScript 辞書のファイル名
データの管理
データの更新
何かしらのツールを通す意味は、検証済みの辞書を作らないと意味がないため。 Notes: ローカルでのチェック ローカルでも手動でチェックできるようにproofdict-testerなどを使って簡単なテストを行えるCLIを作る。 データの使い方textlinttextlint-rule-proofdictを使い、指定したリポジトリからJSONをダウンロードとして辞書として使えるようにする
ローカルからも指定したディレクトリ(辞書ファイルのあるディレクトリ)を指定すれば、読み込んで利用できるようにする。 その他
なので他の用途にも汎用的に使えるようにする |
proofdictをリファインしてる |
https://github.com/azu/prh.yml
https://github.com/azu/technical-word-rules
とか辞書を管理する仕組みとツールが欲しい。
コンテキスト
事例
technical-word-rules
prh.yml
求めるもの
利用方法は2種類あるのだけど、ソースは一つにしておきたいというのが求める仕組み。
(実際の上の辞書はprh.ymlをソースにしてtechnical-word-rulesが生成されている)
類似研究
The text was updated successfully, but these errors were encountered: