aac-metrics 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52fb3c41b9427605e9a78c258c5f4e5d7303c98f8988b52aba750597cb164900
4
- data.tar.gz: 60ccc8a6c1dd2c25d29dd159134c7953e133a1f7a0bb9d710696807f853e8139
3
+ metadata.gz: 9d8e0a136e07e00454338b3ddafc3d3374a0b38cb19f915110aef990dfea3f20
4
+ data.tar.gz: dcc8109cc6c77156e12205e7f518059696aa271d622b085ea0399877dd488542
5
5
  SHA512:
6
- metadata.gz: ac227f5770623d9df36635c92f71aa7a122404fa40f006dce31432be0bd17b6199c0c16ec6a4f5c777f19255106bf1c7f8811bfe4972996b9d12980a75b2911a
7
- data.tar.gz: fd2ef145c944fea960a30282b6f3960f313d5f6f44d0db13f3a4581909744e127455010371d5b4138e546132a2e8d4cfb26ec291793f9ff83b970b54d47aeed9
6
+ metadata.gz: 0de1a12d33d59f0440bab00fb60e426ced9c9cb95c2311931ac0a67a10032e1752b8803b91ef5fb5e80e1f0aa610575ae56917ef42ad7e15cbcb0ac04d4be31b
7
+ data.tar.gz: f372e88fcac486795074d2f425da2d9ff1651b7ad5e6af66b6df46b3e573c927ba30106465bdace6a350c3d6704b425f65bd4b1fb7b60a0ce4142fd2ba9eb83b
@@ -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
@@ -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.length,
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 = []