aac-metrics 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aac-metrics/loader.rb +3 -0
- data/lib/aac-metrics/metrics.rb +4 -7
- data/sets/base_words.en.json +408 -0
- data/sets/bl99-f7fa334245.obfset +31059 -0
- data/sets/cbu-5da852dd65.obfset +1321 -0
- data/sets/cw20-2a2a04587d.obfset +12532 -0
- data/sets/cw40-b73146776d.obfset +36249 -0
- data/sets/cw6-9239957af6.obfset +2111 -0
- data/sets/cw60-a365d1821c.obfset +65562 -0
- data/sets/preview.html +87 -1
- data/sets/{seq15-555e3cd10a.obfset → seq15-ce2e1c7a45.obfset} +74 -2
- data/sets/st63-f270ee4c31.obfset +17432 -0
- metadata +10 -4
- data/sets/cbu-2ae9aef211.obfset +0 -372
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d8e0a136e07e00454338b3ddafc3d3374a0b38cb19f915110aef990dfea3f20
|
4
|
+
data.tar.gz: dcc8109cc6c77156e12205e7f518059696aa271d622b085ea0399877dd488542
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de1a12d33d59f0440bab00fb60e426ced9c9cb95c2311931ac0a67a10032e1752b8803b91ef5fb5e80e1f0aa610575ae56917ef42ad7e15cbcb0ac04d4be31b
|
7
|
+
data.tar.gz: f372e88fcac486795074d2f425da2d9ff1651b7ad5e6af66b6df46b3e573c927ba30106465bdace6a350c3d6704b425f65bd4b1fb7b60a0ce4142fd2ba9eb83b
|
data/lib/aac-metrics/loader.rb
CHANGED
@@ -187,7 +187,10 @@ module AACMetrics::Loader
|
|
187
187
|
puts "Link found with no access #{btn['load_board'].to_json}"
|
188
188
|
end
|
189
189
|
new_btn['load_board']['temporary_home'] = true if new_btn['load_board'] && btn['load_board']['temporary_home']
|
190
|
+
new_btn['load_board']['temporary_home'] = true if new_btn['load_board'] && btn['ext_coughdrop_home_lock']
|
190
191
|
new_btn['load_board']['add_to_sentence'] = true if new_btn['load_board'] && btn['load_board']['add_to_sentence']
|
192
|
+
new_btn['load_board']['add_to_sentence'] = true if new_btn['load_board'] && btn['ext_coughdrop_add_to_vocalization']
|
193
|
+
new_btn['load_board']['add_to_sentence'] = true if new_btn['load_board'] && btn['ext_coughdrop_add_vocalization']
|
191
194
|
elsif btn['action']
|
192
195
|
# TODO: track keyboard actions and don't
|
193
196
|
# treat action buttons for metrics
|
data/lib/aac-metrics/metrics.rb
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
# TODO:
|
2
2
|
# Qualitative evaluation criteria:
|
3
|
-
# - this set looks easy to learn for communicators
|
4
|
-
# - this set looks easy to learn for supporters
|
5
|
-
# - this vocabulary organization of this set makes sense
|
6
3
|
# - this set provides clear locations for user-specific words to be added
|
7
4
|
# - this set supports the use of grammatical forms (tenses and other inflections)
|
8
5
|
# - this set provides predefined simplification for beginning communicators
|
9
|
-
# - this set allows for long-term vocabulary growth over time
|
10
|
-
# - this vocabulary looks like it will work well for young users
|
11
|
-
# - this vocabulary looks like it will work well for adult users
|
12
6
|
|
13
7
|
# Effort algorithms for scanning/eyes
|
14
8
|
module AACMetrics::Metrics
|
@@ -139,7 +133,8 @@ module AACMetrics::Metrics
|
|
139
133
|
analysis_version: AACMetrics::VERSION,
|
140
134
|
locale: locale,
|
141
135
|
total_boards: total_boards,
|
142
|
-
total_buttons: buttons.
|
136
|
+
total_buttons: buttons.map{|b| b[:count] || 1}.sum,
|
137
|
+
total_words: buttons.map{|b| b[:label] }.uniq.length,
|
143
138
|
reference_counts: set_refs,
|
144
139
|
grid: {
|
145
140
|
rows: root_rows,
|
@@ -360,6 +355,7 @@ module AACMetrics::Metrics
|
|
360
355
|
label: word,
|
361
356
|
level: board[:level],
|
362
357
|
effort: effort,
|
358
|
+
count: ((existing || {})[:count] || 0) + 1
|
363
359
|
}
|
364
360
|
# If a board set has any temporary_home links,
|
365
361
|
# then that can possibly affect the effort
|
@@ -458,6 +454,7 @@ module AACMetrics::Metrics
|
|
458
454
|
compare = AACMetrics::Metrics.analyze(compset, false)
|
459
455
|
res[:comp_boards] = compare[:total_boards]
|
460
456
|
res[:comp_buttons] = compare[:total_buttons]
|
457
|
+
res[:comp_words] = compare[:total_words]
|
461
458
|
res[:comp_grid] = compare[:grid]
|
462
459
|
|
463
460
|
compare_words = []
|