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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f6c8116c4b1a24d73d27bba7a73c1a0c181d7c7cc33d1ae752b688de68cf9fa
4
- data.tar.gz: e2824833060c739d59ae5634e6a61752bc30fa957b186fcfe818dea0f292f995
3
+ metadata.gz: 0e18d58bd1828f3c3f8ba86432970357bfa98eecef826783c6b530a36486192f
4
+ data.tar.gz: e1a9311dd4e62bbea7e79bb5a9dd4433bbd647d04fe5b65f98da014cc63bcfc7
5
5
  SHA512:
6
- metadata.gz: aceb6c6039b820decb927586cdce44206aff07fc280de67cf9d206a914e2bbc2120bc7166784a46b4d5a8b42d056063e3385f12f4f38c7b7d10dff94196f9c78
7
- data.tar.gz: 2ef6e8ecbe3a073501b081f5e8ef43053b64b3af1e086172b95aa09f29fd2ac2f6ab3c6aea6eb380768edaa7812fd5f51173612982cf57dd1f90d97fbbde366a
6
+ metadata.gz: cde22b0954462871f997d9a2c897d9279329bf933191fb260ec4e4dee35624ff5a76f5cde83439f2665c1e04753ebd568be941341310129b68b9571a76492854
7
+ data.tar.gz: c49e01b6c056e94e9ed4f363f3b7041cde91552a326211927a05baf862bb45eca52a9de447ef3b22b583eaa5085faad41d52d264bf4e403345531ccbcbdf2738
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Linter
4
- VERSION = '0.1.12'
4
+ VERSION = '0.1.13'
5
5
  end
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.12
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-06-28 00:00:00.000000000 Z
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.17'
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.17'
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: '10.0'
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: '10.0'
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: []