linter 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/recommendations.yml +2 -2
- data/lib/linter/base_association.rb +3 -0
- data/lib/linter/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e18d58bd1828f3c3f8ba86432970357bfa98eecef826783c6b530a36486192f
|
4
|
+
data.tar.gz: e1a9311dd4e62bbea7e79bb5a9dd4433bbd647d04fe5b65f98da014cc63bcfc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cde22b0954462871f997d9a2c897d9279329bf933191fb260ec4e4dee35624ff5a76f5cde83439f2665c1e04753ebd568be941341310129b68b9571a76492854
|
7
|
+
data.tar.gz: c49e01b6c056e94e9ed4f363f3b7041cde91552a326211927a05baf862bb45eca52a9de447ef3b22b583eaa5085faad41d52d264bf4e403345531ccbcbdf2738
|
data/data/recommendations.yml
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
There could still be other factors that make this text less inclusive.
|
7
7
|
- result: masculine-coded
|
8
8
|
recommendation: |
|
9
|
-
You're using more masculine-coded words than feminine coded-words. Try to replace the words listed as masculine-coded.
|
9
|
+
You're using more masculine-coded words than feminine coded-words. Try to replace some of the words listed as masculine-coded.
|
10
10
|
This will result in a more balanced and inclusive text. If this happens to be a job ad, note that according to
|
11
11
|
<a href='http://gender-decoder.katmatfield.com/static/documents/Gaucher-Friesen-Kay-JPSP-Gendered-Wording-in-Job-ads.pdf'>this study</a>
|
12
12
|
it risks putting women off and encourage men to apply.
|
13
13
|
- result: strongly masculine-coded
|
14
14
|
recommendation: |
|
15
|
-
You're using more masculine-coded words than feminine coded-words. Try to replace the words listed as masculine-coded.
|
15
|
+
You're using more masculine-coded words than feminine coded-words. Try to replace some of the words listed as masculine-coded.
|
16
16
|
This will result in a more balanced and inclusive text. If this happens to be a job ad, note that according to
|
17
17
|
<a href='http://gender-decoder.katmatfield.com/static/documents/Gaucher-Friesen-Kay-JPSP-Gendered-Wording-in-Job-ads.pdf'>this study</a>
|
18
18
|
it risks putting women off and encourage men to apply.
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
module Linter
|
4
4
|
class BaseAssociation
|
5
|
+
SKIP_WORDS = ['directory'].freeze
|
6
|
+
|
5
7
|
def self.analyze(text)
|
6
8
|
result = OpenStruct.new(trend: '')
|
7
9
|
|
@@ -31,6 +33,7 @@ module Linter
|
|
31
33
|
matches
|
32
34
|
.flatten
|
33
35
|
.map(&:downcase)
|
36
|
+
.reject { |m| SKIP_WORDS.include? m}
|
34
37
|
.group_by { |v| v }
|
35
38
|
.transform_values(&:size)
|
36
39
|
.to_h
|
data/lib/linter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lien van den steen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0.8'
|
125
|
-
description:
|
125
|
+
description:
|
126
126
|
email:
|
127
127
|
- lienvandensteen@gmail.com
|
128
128
|
executables:
|
@@ -153,7 +153,7 @@ licenses:
|
|
153
153
|
metadata:
|
154
154
|
homepage_uri: https://gitlab.com/lienvdsteen/linter
|
155
155
|
source_code_uri: https://gitlab.com/lienvdsteen/linter
|
156
|
-
post_install_message:
|
156
|
+
post_install_message:
|
157
157
|
rdoc_options: []
|
158
158
|
require_paths:
|
159
159
|
- lib
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
171
|
rubygems_version: 3.0.3
|
172
|
-
signing_key:
|
172
|
+
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Library to check a text for gender coded language
|
175
175
|
test_files: []
|