Skip to content

Commit 2d27979

Browse files
committed
Initial commit
0 parents  commit 2d27979

File tree

9 files changed

+667
-0
lines changed

9 files changed

+667
-0
lines changed

.gitignore

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
### https://raw.github.com/github/gitignore/608690d6b9a78c2a003affc792e49a84905b3118/Node.gitignore
2+
3+
# Logs
4+
logs
5+
*.log
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
19+
.grunt
20+
21+
# node-waf configuration
22+
.lock-wscript
23+
24+
# Compiled binary addons (http://nodejs.org/api/addons.html)
25+
build/Release
26+
27+
# Dependency directory
28+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
29+
node_modules
30+
31+
# Debug log from npm
32+
npm-debug.log
33+
34+
35+
### https://raw.github.com/github/gitignore/608690d6b9a78c2a003affc792e49a84905b3118/Global/JetBrains.gitignore
36+
37+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
38+
39+
*.iml
40+
41+
## Directory-based project format:
42+
.idea/
43+
# if you remove the above rule, at least ignore the following:
44+
45+
# User-specific stuff:
46+
# .idea/workspace.xml
47+
# .idea/tasks.xml
48+
# .idea/dictionaries
49+
50+
# Sensitive or high-churn files:
51+
# .idea/dataSources.ids
52+
# .idea/dataSources.xml
53+
# .idea/sqlDataSources.xml
54+
# .idea/dynamic.xml
55+
# .idea/uiDesigner.xml
56+
57+
# Gradle:
58+
# .idea/gradle.xml
59+
# .idea/libraries
60+
61+
# Mongo Explorer plugin:
62+
# .idea/mongoSettings.xml
63+
64+
## File-based project format:
65+
*.ipr
66+
*.iws
67+
68+
## Plugin-specific files:
69+
70+
# IntelliJ
71+
out/
72+
73+
# mpeltonen/sbt-idea plugin
74+
.idea_modules/
75+
76+
# JIRA plugin
77+
atlassian-ide-plugin.xml
78+
79+
# Crashlytics plugin (for Android Studio and IntelliJ)
80+
com_crashlytics_export_strings.xml
81+
crashlytics.properties
82+
crashlytics-build.properties
83+
84+
85+
/lib
86+
### https://raw.github.com/github/gitignore/608690d6b9a78c2a003affc792e49a84905b3118/Node.gitignore
87+
88+
# Logs
89+
logs
90+
*.log
91+
92+
# Runtime data
93+
pids
94+
*.pid
95+
*.seed
96+
97+
# Directory for instrumented libs generated by jscoverage/JSCover
98+
lib-cov
99+
100+
# Coverage directory used by tools like istanbul
101+
coverage
102+
103+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
104+
.grunt
105+
106+
# node-waf configuration
107+
.lock-wscript
108+
109+
# Compiled binary addons (http://nodejs.org/api/addons.html)
110+
build/Release
111+
112+
# Dependency directory
113+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
114+
node_modules
115+
116+
# Debug log from npm
117+
npm-debug.log
118+
119+
120+
### https://raw.github.com/github/gitignore/608690d6b9a78c2a003affc792e49a84905b3118/Global/JetBrains.gitignore
121+
122+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
123+
124+
*.iml
125+
126+
## Directory-based project format:
127+
.idea/
128+
# if you remove the above rule, at least ignore the following:
129+
130+
# User-specific stuff:
131+
# .idea/workspace.xml
132+
# .idea/tasks.xml
133+
# .idea/dictionaries
134+
135+
# Sensitive or high-churn files:
136+
# .idea/dataSources.ids
137+
# .idea/dataSources.xml
138+
# .idea/sqlDataSources.xml
139+
# .idea/dynamic.xml
140+
# .idea/uiDesigner.xml
141+
142+
# Gradle:
143+
# .idea/gradle.xml
144+
# .idea/libraries
145+
146+
# Mongo Explorer plugin:
147+
# .idea/mongoSettings.xml
148+
149+
## File-based project format:
150+
*.ipr
151+
*.iws
152+
153+
## Plugin-specific files:
154+
155+
# IntelliJ
156+
out/
157+
158+
# mpeltonen/sbt-idea plugin
159+
.idea_modules/
160+
161+
# JIRA plugin
162+
atlassian-ide-plugin.xml
163+
164+
# Crashlytics plugin (for Android Studio and IntelliJ)
165+
com_crashlytics_export_strings.xml
166+
crashlytics.properties
167+
crashlytics-build.properties
168+
169+
170+
/lib

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sudo: false
2+
language: node_js
3+
node_js: "stable"

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2016 azu
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# textlint-rule-ja-no-redundant-expression
2+
3+
冗長な表現を禁止するtextlintルール
4+
5+
## 表現の一覧
6+
7+
- "することができる"は冗長な表現です。"することが"を省き簡潔な表現にすると文章が明瞭になります。
8+
- <http://qiita.com/takahi-i/items/a93dc2ff42af6b93f6e0>
9+
- "であると言えます"は冗長な表現です。"と言えます"を省き簡潔な表現にすると文章が明瞭になります。
10+
- <http://www.sekaihaasobiba.com/entry/2014/10/24/204024>
11+
- "であると考えている"は冗長な表現です。"と考えている"を省き簡潔な表現にすると文章が明瞭になります。
12+
- <http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html>
13+
- "確認を行わなければ"は冗長な表現です。"確認しなければ"など簡潔な表現にすると文章が明瞭になります。
14+
- <http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html>
15+
16+
## Install
17+
18+
Install with [npm](https://www.npmjs.com/):
19+
20+
npm install textlint-rule-ja-no-redundant-expression
21+
22+
## Usage
23+
24+
Via `.textlintrc`(Recommended)
25+
26+
```json
27+
{
28+
"rules": {
29+
"ja-no-redundant-expression": true
30+
}
31+
}
32+
```
33+
34+
Via CLI
35+
36+
textlint --rule ja-no-redundant-expression README.md
37+
38+
## Changelog
39+
40+
See [Releases page](https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression/releases).
41+
42+
## Running tests
43+
44+
Install devDependencies and Run `npm test`:
45+
46+
npm i -d && npm test
47+
48+
## Contributing
49+
50+
Pull requests and stars are always welcome.
51+
52+
For bugs and feature requests, [please create an issue](https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression/issues).
53+
54+
1. Fork it!
55+
2. Create your feature branch: `git checkout -b my-new-feature`
56+
3. Commit your changes: `git commit -am 'Add some feature'`
57+
4. Push to the branch: `git push origin my-new-feature`
58+
5. Submit a pull request :D
59+
60+
## Author
61+
62+
- [github/azu](https://github.com/azu)
63+
- [twitter/azu_re](https://twitter.com/azu_re)
64+
65+
## License
66+
67+
MIT © azu

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"directories": {
3+
"test": "test"
4+
},
5+
"author": "azu",
6+
"license": "MIT",
7+
"files": [
8+
"bin/",
9+
"lib/",
10+
"src/"
11+
],
12+
"name": "textlint-rule-ja-no-redundant-expression",
13+
"description": "冗長な表現を禁止するtextlintルール",
14+
"version": "1.0.0",
15+
"main": "lib/textlint-rule-ja-no-redundant-expression.js",
16+
"scripts": {
17+
"test": "textlint-scripts test",
18+
"docs": "node tools/update-readme.js",
19+
"prepublish": "npm run docs && npm run --if-present build",
20+
"build": "textlint-scripts build",
21+
"watch": "textlint-scripts build --watch"
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression.git"
26+
},
27+
"bugs": {
28+
"url": "https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression/issues"
29+
},
30+
"homepage": "https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression",
31+
"devDependencies": {
32+
"add-text-to-markdown": "^2.0.0",
33+
"textlint-scripts": "^1.2.2"
34+
},
35+
"dependencies": {
36+
"kuromojin": "^1.3.2",
37+
"morpheme-match": "^1.0.1",
38+
"morpheme-match-all": "^1.0.2"
39+
}
40+
}

0 commit comments

Comments
 (0)