psytools 0.5.2 → 0.5.4

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.
Files changed (246) hide show
  1. package/README.md +32 -12
  2. package/SOURCES.md +116 -8
  3. package/dist/cjs/index.d.ts +2 -2
  4. package/dist/cjs/index.js +10 -1
  5. package/dist/cjs/inventories/aq10.js +3 -0
  6. package/dist/cjs/inventories/asrs6.d.ts +12 -5
  7. package/dist/cjs/inventories/asrs6.js +17 -6
  8. package/dist/cjs/inventories/audit.js +3 -0
  9. package/dist/cjs/inventories/cesd.d.ts +11 -0
  10. package/dist/cjs/inventories/cesd.js +207 -0
  11. package/dist/cjs/inventories/common.d.ts +11 -0
  12. package/dist/cjs/inventories/common.js +26 -1
  13. package/dist/cjs/inventories/dass21.js +3 -0
  14. package/dist/cjs/inventories/ecr-r.d.ts +16 -0
  15. package/dist/cjs/inventories/ecr-r.js +114 -0
  16. package/dist/cjs/inventories/erq.d.ts +16 -0
  17. package/dist/cjs/inventories/erq.js +79 -0
  18. package/dist/cjs/inventories/flourishing.d.ts +12 -0
  19. package/dist/cjs/inventories/flourishing.js +53 -0
  20. package/dist/cjs/inventories/gad7.js +3 -0
  21. package/dist/cjs/inventories/hsps.d.ts +14 -0
  22. package/dist/cjs/inventories/hsps.js +83 -0
  23. package/dist/cjs/inventories/index.d.ts +11 -2
  24. package/dist/cjs/inventories/index.js +28 -1
  25. package/dist/cjs/inventories/k10.d.ts +12 -0
  26. package/dist/cjs/inventories/k10.js +62 -0
  27. package/dist/cjs/inventories/k6.d.ts +12 -0
  28. package/dist/cjs/inventories/k6.js +57 -0
  29. package/dist/cjs/inventories/mini-ipip.js +3 -0
  30. package/dist/cjs/inventories/phq9.js +3 -0
  31. package/dist/cjs/inventories/rses.d.ts +11 -0
  32. package/dist/cjs/inventories/rses.js +63 -0
  33. package/dist/cjs/inventories/swls.d.ts +12 -0
  34. package/dist/cjs/inventories/swls.js +59 -0
  35. package/dist/cjs/inventories/who5.js +3 -0
  36. package/dist/cjs/locales/de/cesd.d.ts +4 -0
  37. package/dist/cjs/locales/de/cesd.js +43 -0
  38. package/dist/cjs/locales/de/erq.d.ts +4 -0
  39. package/dist/cjs/locales/de/erq.js +36 -0
  40. package/dist/cjs/locales/de/flourishing.d.ts +4 -0
  41. package/dist/cjs/locales/de/flourishing.js +30 -0
  42. package/dist/cjs/locales/de/k10.d.ts +4 -0
  43. package/dist/cjs/locales/de/k10.js +36 -0
  44. package/dist/cjs/locales/de/k6.d.ts +4 -0
  45. package/dist/cjs/locales/de/k6.js +31 -0
  46. package/dist/cjs/locales/de/rses.d.ts +4 -0
  47. package/dist/cjs/locales/de/rses.js +34 -0
  48. package/dist/cjs/locales/de/swls.d.ts +4 -0
  49. package/dist/cjs/locales/de/swls.js +36 -0
  50. package/dist/cjs/locales/es/cesd.d.ts +4 -0
  51. package/dist/cjs/locales/es/cesd.js +43 -0
  52. package/dist/cjs/locales/es/erq.d.ts +4 -0
  53. package/dist/cjs/locales/es/erq.js +36 -0
  54. package/dist/cjs/locales/es/flourishing.d.ts +4 -0
  55. package/dist/cjs/locales/es/flourishing.js +46 -0
  56. package/dist/cjs/locales/es/k10.d.ts +4 -0
  57. package/dist/cjs/locales/es/k10.js +56 -0
  58. package/dist/cjs/locales/es/k6.d.ts +4 -0
  59. package/dist/cjs/locales/es/k6.js +43 -0
  60. package/dist/cjs/locales/es/rses.d.ts +4 -0
  61. package/dist/cjs/locales/es/rses.js +54 -0
  62. package/dist/cjs/locales/es/swls.d.ts +4 -0
  63. package/dist/cjs/locales/es/swls.js +46 -0
  64. package/dist/cjs/locales/index.js +51 -0
  65. package/dist/cjs/locales/tr/cesd.d.ts +4 -0
  66. package/dist/cjs/locales/tr/cesd.js +43 -0
  67. package/dist/cjs/locales/tr/ecr-r.d.ts +12 -0
  68. package/dist/cjs/locales/tr/ecr-r.js +70 -0
  69. package/dist/cjs/locales/tr/erq.d.ts +10 -0
  70. package/dist/cjs/locales/tr/erq.js +42 -0
  71. package/dist/cjs/locales/tr/flourishing.d.ts +4 -0
  72. package/dist/cjs/locales/tr/flourishing.js +46 -0
  73. package/dist/cjs/locales/tr/hsps.d.ts +10 -0
  74. package/dist/cjs/locales/tr/hsps.js +55 -0
  75. package/dist/cjs/locales/tr/k10.d.ts +4 -0
  76. package/dist/cjs/locales/tr/k10.js +56 -0
  77. package/dist/cjs/locales/tr/k6.d.ts +4 -0
  78. package/dist/cjs/locales/tr/k6.js +43 -0
  79. package/dist/cjs/locales/tr/rses.d.ts +4 -0
  80. package/dist/cjs/locales/tr/rses.js +54 -0
  81. package/dist/cjs/locales/tr/swls.d.ts +4 -0
  82. package/dist/cjs/locales/tr/swls.js +46 -0
  83. package/dist/cjs/locales/zh/cesd.d.ts +4 -0
  84. package/dist/cjs/locales/zh/cesd.js +43 -0
  85. package/dist/cjs/locales/zh/erq.d.ts +4 -0
  86. package/dist/cjs/locales/zh/erq.js +36 -0
  87. package/dist/cjs/locales/zh/flourishing.d.ts +4 -0
  88. package/dist/cjs/locales/zh/flourishing.js +46 -0
  89. package/dist/cjs/locales/zh/k10.d.ts +4 -0
  90. package/dist/cjs/locales/zh/k10.js +56 -0
  91. package/dist/cjs/locales/zh/k6.d.ts +4 -0
  92. package/dist/cjs/locales/zh/k6.js +43 -0
  93. package/dist/cjs/locales/zh/rses.d.ts +4 -0
  94. package/dist/cjs/locales/zh/rses.js +54 -0
  95. package/dist/cjs/locales/zh/swls.d.ts +4 -0
  96. package/dist/cjs/locales/zh/swls.js +46 -0
  97. package/dist/cjs/types.d.ts +52 -0
  98. package/dist/esm/index.d.ts +2 -2
  99. package/dist/esm/index.js +1 -1
  100. package/dist/esm/inventories/aq10.js +3 -0
  101. package/dist/esm/inventories/asrs6.d.ts +12 -5
  102. package/dist/esm/inventories/asrs6.js +17 -6
  103. package/dist/esm/inventories/audit.js +3 -0
  104. package/dist/esm/inventories/cesd.d.ts +11 -0
  105. package/dist/esm/inventories/cesd.js +204 -0
  106. package/dist/esm/inventories/common.d.ts +11 -0
  107. package/dist/esm/inventories/common.js +25 -0
  108. package/dist/esm/inventories/dass21.js +3 -0
  109. package/dist/esm/inventories/ecr-r.d.ts +16 -0
  110. package/dist/esm/inventories/ecr-r.js +111 -0
  111. package/dist/esm/inventories/erq.d.ts +16 -0
  112. package/dist/esm/inventories/erq.js +76 -0
  113. package/dist/esm/inventories/flourishing.d.ts +12 -0
  114. package/dist/esm/inventories/flourishing.js +50 -0
  115. package/dist/esm/inventories/gad7.js +3 -0
  116. package/dist/esm/inventories/hsps.d.ts +14 -0
  117. package/dist/esm/inventories/hsps.js +80 -0
  118. package/dist/esm/inventories/index.d.ts +11 -2
  119. package/dist/esm/inventories/index.js +19 -1
  120. package/dist/esm/inventories/k10.d.ts +12 -0
  121. package/dist/esm/inventories/k10.js +59 -0
  122. package/dist/esm/inventories/k6.d.ts +12 -0
  123. package/dist/esm/inventories/k6.js +54 -0
  124. package/dist/esm/inventories/mini-ipip.js +3 -0
  125. package/dist/esm/inventories/phq9.js +3 -0
  126. package/dist/esm/inventories/rses.d.ts +11 -0
  127. package/dist/esm/inventories/rses.js +60 -0
  128. package/dist/esm/inventories/swls.d.ts +12 -0
  129. package/dist/esm/inventories/swls.js +56 -0
  130. package/dist/esm/inventories/who5.js +3 -0
  131. package/dist/esm/locales/de/cesd.d.ts +4 -0
  132. package/dist/esm/locales/de/cesd.js +41 -0
  133. package/dist/esm/locales/de/erq.d.ts +4 -0
  134. package/dist/esm/locales/de/erq.js +34 -0
  135. package/dist/esm/locales/de/flourishing.d.ts +4 -0
  136. package/dist/esm/locales/de/flourishing.js +28 -0
  137. package/dist/esm/locales/de/k10.d.ts +4 -0
  138. package/dist/esm/locales/de/k10.js +34 -0
  139. package/dist/esm/locales/de/k6.d.ts +4 -0
  140. package/dist/esm/locales/de/k6.js +29 -0
  141. package/dist/esm/locales/de/rses.d.ts +4 -0
  142. package/dist/esm/locales/de/rses.js +32 -0
  143. package/dist/esm/locales/de/swls.d.ts +4 -0
  144. package/dist/esm/locales/de/swls.js +34 -0
  145. package/dist/esm/locales/es/cesd.d.ts +4 -0
  146. package/dist/esm/locales/es/cesd.js +41 -0
  147. package/dist/esm/locales/es/erq.d.ts +4 -0
  148. package/dist/esm/locales/es/erq.js +34 -0
  149. package/dist/esm/locales/es/flourishing.d.ts +4 -0
  150. package/dist/esm/locales/es/flourishing.js +44 -0
  151. package/dist/esm/locales/es/k10.d.ts +4 -0
  152. package/dist/esm/locales/es/k10.js +54 -0
  153. package/dist/esm/locales/es/k6.d.ts +4 -0
  154. package/dist/esm/locales/es/k6.js +41 -0
  155. package/dist/esm/locales/es/rses.d.ts +4 -0
  156. package/dist/esm/locales/es/rses.js +52 -0
  157. package/dist/esm/locales/es/swls.d.ts +4 -0
  158. package/dist/esm/locales/es/swls.js +44 -0
  159. package/dist/esm/locales/index.js +51 -0
  160. package/dist/esm/locales/tr/cesd.d.ts +4 -0
  161. package/dist/esm/locales/tr/cesd.js +41 -0
  162. package/dist/esm/locales/tr/ecr-r.d.ts +12 -0
  163. package/dist/esm/locales/tr/ecr-r.js +68 -0
  164. package/dist/esm/locales/tr/erq.d.ts +10 -0
  165. package/dist/esm/locales/tr/erq.js +40 -0
  166. package/dist/esm/locales/tr/flourishing.d.ts +4 -0
  167. package/dist/esm/locales/tr/flourishing.js +44 -0
  168. package/dist/esm/locales/tr/hsps.d.ts +10 -0
  169. package/dist/esm/locales/tr/hsps.js +53 -0
  170. package/dist/esm/locales/tr/k10.d.ts +4 -0
  171. package/dist/esm/locales/tr/k10.js +54 -0
  172. package/dist/esm/locales/tr/k6.d.ts +4 -0
  173. package/dist/esm/locales/tr/k6.js +41 -0
  174. package/dist/esm/locales/tr/rses.d.ts +4 -0
  175. package/dist/esm/locales/tr/rses.js +52 -0
  176. package/dist/esm/locales/tr/swls.d.ts +4 -0
  177. package/dist/esm/locales/tr/swls.js +44 -0
  178. package/dist/esm/locales/zh/cesd.d.ts +4 -0
  179. package/dist/esm/locales/zh/cesd.js +41 -0
  180. package/dist/esm/locales/zh/erq.d.ts +4 -0
  181. package/dist/esm/locales/zh/erq.js +34 -0
  182. package/dist/esm/locales/zh/flourishing.d.ts +4 -0
  183. package/dist/esm/locales/zh/flourishing.js +44 -0
  184. package/dist/esm/locales/zh/k10.d.ts +4 -0
  185. package/dist/esm/locales/zh/k10.js +54 -0
  186. package/dist/esm/locales/zh/k6.d.ts +4 -0
  187. package/dist/esm/locales/zh/k6.js +41 -0
  188. package/dist/esm/locales/zh/rses.d.ts +4 -0
  189. package/dist/esm/locales/zh/rses.js +52 -0
  190. package/dist/esm/locales/zh/swls.d.ts +4 -0
  191. package/dist/esm/locales/zh/swls.js +44 -0
  192. package/dist/esm/types.d.ts +52 -0
  193. package/package.json +18 -2
  194. package/schema/assessment-definition.schema.json +16 -0
  195. package/src/index.ts +12 -0
  196. package/src/inventories/aq10.ts +3 -0
  197. package/src/inventories/asrs6.ts +18 -6
  198. package/src/inventories/audit.ts +3 -0
  199. package/src/inventories/cesd.ts +210 -0
  200. package/src/inventories/common.ts +27 -0
  201. package/src/inventories/dass21.ts +3 -0
  202. package/src/inventories/ecr-r.ts +119 -0
  203. package/src/inventories/erq.ts +83 -0
  204. package/src/inventories/flourishing.ts +56 -0
  205. package/src/inventories/gad7.ts +3 -0
  206. package/src/inventories/hsps.ts +88 -0
  207. package/src/inventories/index.ts +29 -2
  208. package/src/inventories/k10.ts +64 -0
  209. package/src/inventories/k6.ts +59 -0
  210. package/src/inventories/mini-ipip.ts +3 -0
  211. package/src/inventories/phq9.ts +3 -0
  212. package/src/inventories/rses.ts +66 -0
  213. package/src/inventories/swls.ts +62 -0
  214. package/src/inventories/who5.ts +3 -0
  215. package/src/locales/de/cesd.ts +44 -0
  216. package/src/locales/de/erq.ts +37 -0
  217. package/src/locales/de/flourishing.ts +31 -0
  218. package/src/locales/de/k10.ts +37 -0
  219. package/src/locales/de/k6.ts +32 -0
  220. package/src/locales/de/rses.ts +35 -0
  221. package/src/locales/de/swls.ts +37 -0
  222. package/src/locales/es/cesd.ts +44 -0
  223. package/src/locales/es/erq.ts +37 -0
  224. package/src/locales/es/flourishing.ts +47 -0
  225. package/src/locales/es/k10.ts +57 -0
  226. package/src/locales/es/k6.ts +44 -0
  227. package/src/locales/es/rses.ts +55 -0
  228. package/src/locales/es/swls.ts +47 -0
  229. package/src/locales/index.ts +51 -0
  230. package/src/locales/tr/cesd.ts +44 -0
  231. package/src/locales/tr/ecr-r.ts +71 -0
  232. package/src/locales/tr/erq.ts +43 -0
  233. package/src/locales/tr/flourishing.ts +47 -0
  234. package/src/locales/tr/hsps.ts +56 -0
  235. package/src/locales/tr/k10.ts +57 -0
  236. package/src/locales/tr/k6.ts +44 -0
  237. package/src/locales/tr/rses.ts +55 -0
  238. package/src/locales/tr/swls.ts +47 -0
  239. package/src/locales/zh/cesd.ts +44 -0
  240. package/src/locales/zh/erq.ts +37 -0
  241. package/src/locales/zh/flourishing.ts +47 -0
  242. package/src/locales/zh/k10.ts +57 -0
  243. package/src/locales/zh/k6.ts +44 -0
  244. package/src/locales/zh/rses.ts +55 -0
  245. package/src/locales/zh/swls.ts +47 -0
  246. package/src/types.ts +69 -0
@@ -0,0 +1,41 @@
1
+ /** Simplified Chinese locale pack for cesd. AI translation (Anthropic Claude, claude-fable-5), unverified — see SOURCES.md. */
2
+ const pack = {
3
+ "id": "cesd",
4
+ "locale": "zh",
5
+ "title": "流行病学研究中心抑郁量表(CES-D)",
6
+ "description": "用于测量普通人群抑郁症状的20个条目自评量表。",
7
+ "instructions": "请仔细阅读每一条陈述,然后指出在过去一周内(包括今天)您有多经常出现这样的感受或行为。",
8
+ "options": [
9
+ "很少或没有(少于1天)",
10
+ "有时或少量时间(1-2天)",
11
+ "经常或相当多的时间(3-4天)",
12
+ "大多数时间或全部时间(5-7天)"
13
+ ],
14
+ "questions": {
15
+ "cesd-1": { "text": "平时不会烦扰我的事情让我感到烦扰" },
16
+ "cesd-2": { "text": "我不想吃东西;胃口不好" },
17
+ "cesd-3": { "text": "即使有家人和朋友的帮助,我也觉得无法摆脱苦闷" },
18
+ "cesd-4": { "text": "我觉得自己和别人一样好" },
19
+ "cesd-5": { "text": "我很难把注意力集中在正在做的事情上" },
20
+ "cesd-6": { "text": "我感到情绪低落" },
21
+ "cesd-7": { "text": "我觉得做任何事情都很费力" },
22
+ "cesd-8": { "text": "我对未来充满希望" },
23
+ "cesd-9": { "text": "我觉得我的生活是失败的" },
24
+ "cesd-10": { "text": "我感到害怕" },
25
+ "cesd-11": { "text": "我睡眠不安稳" },
26
+ "cesd-12": { "text": "我很快乐" },
27
+ "cesd-13": { "text": "我比平时说话少" },
28
+ "cesd-14": { "text": "我感到孤独" },
29
+ "cesd-15": { "text": "人们对我不友好" },
30
+ "cesd-16": { "text": "我享受生活" },
31
+ "cesd-17": { "text": "我有过哭泣的时候" },
32
+ "cesd-18": { "text": "我感到悲伤" },
33
+ "cesd-19": { "text": "我觉得人们不喜欢我" },
34
+ "cesd-20": { "text": "我觉得自己无法振作起来" }
35
+ },
36
+ "bands": {
37
+ "below-cutoff": "低于临床临界值",
38
+ "elevated": "抑郁症状升高(达到或超过临界值16分)"
39
+ }
40
+ };
41
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for erq. AI translation (Anthropic Claude, claude-fable-5), unverified — see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,34 @@
1
+ /** Simplified Chinese locale pack for erq. AI translation (Anthropic Claude, claude-fable-5), unverified — see SOURCES.md. */
2
+ const pack = {
3
+ "id": "erq",
4
+ "locale": "zh",
5
+ "title": "情绪调节问卷(ERQ)",
6
+ "description": "测量两种情绪调节策略——认知重评与表达抑制——习惯性使用程度的10个条目量表。",
7
+ "instructions": "我们想了解您的情绪生活,特别是您如何控制(即调节和管理)自己的情绪。以下问题涉及您情绪生活的两个不同方面。一个是情绪体验,即您内心的感受;另一个是情绪表达,即您通过言谈、姿态或行为表现情绪的方式。虽然下面有些问题看起来彼此相似,但它们在重要方面有所不同。",
8
+ "options": [
9
+ "1 — 完全不同意",
10
+ "2",
11
+ "3",
12
+ "4 — 中立",
13
+ "5",
14
+ "6",
15
+ "7 — 完全同意"
16
+ ],
17
+ "questions": {
18
+ "erq-1": { "text": "当我想感受更多积极情绪(如快乐或愉悦)时,我会改变自己正在想的事情。" },
19
+ "erq-2": { "text": "我把情绪藏在心里。" },
20
+ "erq-3": { "text": "当我想减少消极情绪(如悲伤或愤怒)时,我会改变自己正在想的事情。" },
21
+ "erq-4": { "text": "当我产生积极情绪时,我会小心不把它们表现出来。" },
22
+ "erq-5": { "text": "面对有压力的情境时,我会让自己以一种有助于保持冷静的方式去思考它。" },
23
+ "erq-6": { "text": "我通过不表达情绪来控制自己的情绪。" },
24
+ "erq-7": { "text": "当我想感受更多积极情绪时,我会改变自己对所处情境的看法。" },
25
+ "erq-8": { "text": "我通过改变对所处情境的看法来控制自己的情绪。" },
26
+ "erq-9": { "text": "当我产生消极情绪时,我会确保不把它们表现出来。" },
27
+ "erq-10": { "text": "当我想减少消极情绪时,我会改变自己对所处情境的看法。" }
28
+ },
29
+ "subscales": {
30
+ "reappraisal": { "label": "认知重评" },
31
+ "suppression": { "label": "表达抑制" }
32
+ }
33
+ };
34
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for flourishing. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,44 @@
1
+ /** Simplified Chinese locale pack for flourishing. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
2
+ const pack = {
3
+ "id": "flourishing",
4
+ "locale": "zh",
5
+ "title": "蓬勃发展量表(FS)",
6
+ "description": "一份包含8个条目的综合量表,用于测量个体在人际关系、自尊、人生目标和乐观等重要领域的自我认知成功感。",
7
+ "instructions": "以下是八条陈述,您可能同意或不同意。请对每个条目表明您的同意程度。",
8
+ "options": [
9
+ "非常不同意",
10
+ "不同意",
11
+ "有点不同意",
12
+ "既不同意也不反对",
13
+ "有点同意",
14
+ "同意",
15
+ "非常同意"
16
+ ],
17
+ "questions": {
18
+ "flourishing-1": {
19
+ "text": "我过着有目标、有意义的生活"
20
+ },
21
+ "flourishing-2": {
22
+ "text": "我的社会关系给我支持,也让我感到有收获"
23
+ },
24
+ "flourishing-3": {
25
+ "text": "我投入并关注自己的日常活动"
26
+ },
27
+ "flourishing-4": {
28
+ "text": "我积极为他人的幸福和福祉做出贡献"
29
+ },
30
+ "flourishing-5": {
31
+ "text": "在对我重要的活动中,我表现得有能力、有胜任力"
32
+ },
33
+ "flourishing-6": {
34
+ "text": "我是一个好人,过着良好的生活"
35
+ },
36
+ "flourishing-7": {
37
+ "text": "我对自己的未来感到乐观"
38
+ },
39
+ "flourishing-8": {
40
+ "text": "人们尊重我"
41
+ }
42
+ }
43
+ };
44
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for k10. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,54 @@
1
+ /** Simplified Chinese locale pack for k10. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
2
+ const pack = {
3
+ "id": "k10",
4
+ "locale": "zh",
5
+ "title": "凯斯勒心理困扰量表(K10)",
6
+ "description": "一份包含10个条目的筛查量表,用于测量过去30天内的非特异性心理困扰程度。",
7
+ "instructions": "以下问题询问您在过去30天内的感受情况。",
8
+ "options": [
9
+ "完全没有",
10
+ "很少的时候",
11
+ "有些时候",
12
+ "大部分时候",
13
+ "所有时候"
14
+ ],
15
+ "questions": {
16
+ "k10-1": {
17
+ "text": "您有多经常感到无缘无故地疲惫不堪?"
18
+ },
19
+ "k10-2": {
20
+ "text": "您有多经常感到紧张?"
21
+ },
22
+ "k10-3": {
23
+ "text": "您有多经常感到紧张到无法平静下来?"
24
+ },
25
+ "k10-4": {
26
+ "text": "您有多经常感到绝望?"
27
+ },
28
+ "k10-5": {
29
+ "text": "您有多经常感到坐立不安或烦躁不安?"
30
+ },
31
+ "k10-6": {
32
+ "text": "您有多经常感到坐立不安到无法安坐?"
33
+ },
34
+ "k10-7": {
35
+ "text": "您有多经常感到情绪低落?"
36
+ },
37
+ "k10-8": {
38
+ "text": "您有多经常感到做任何事都很费力?"
39
+ },
40
+ "k10-9": {
41
+ "text": "您有多经常感到悲伤到什么都无法让您开心起来?"
42
+ },
43
+ "k10-10": {
44
+ "text": "您有多经常感到自己一无是处?"
45
+ }
46
+ },
47
+ "bands": {
48
+ "low": "很可能状态良好",
49
+ "mild": "轻度心理困扰",
50
+ "moderate": "中度心理困扰",
51
+ "severe": "重度心理困扰"
52
+ }
53
+ };
54
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for k6. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,41 @@
1
+ /** Simplified Chinese locale pack for k6. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
2
+ const pack = {
3
+ "id": "k6",
4
+ "locale": "zh",
5
+ "title": "凯斯勒心理困扰量表(K6)",
6
+ "description": "一份包含6个条目的筛查量表,用于测量过去30天内的非特异性心理困扰程度。",
7
+ "instructions": "以下问题询问您在过去30天内的感受情况。",
8
+ "options": [
9
+ "完全没有",
10
+ "很少的时候",
11
+ "有些时候",
12
+ "大部分时候",
13
+ "所有时候"
14
+ ],
15
+ "questions": {
16
+ "k6-1": {
17
+ "text": "在过去30天里,您有多经常感到紧张?"
18
+ },
19
+ "k6-2": {
20
+ "text": "在过去30天里,您有多经常感到绝望?"
21
+ },
22
+ "k6-3": {
23
+ "text": "在过去30天里,您有多经常感到坐立不安或烦躁不安?"
24
+ },
25
+ "k6-4": {
26
+ "text": "在过去30天里,您有多经常感到情绪低落到什么都无法让您开心起来?"
27
+ },
28
+ "k6-5": {
29
+ "text": "在过去30天里,您有多经常感到做任何事都很费力?"
30
+ },
31
+ "k6-6": {
32
+ "text": "在过去30天里,您有多经常感到自己一无是处?"
33
+ }
34
+ },
35
+ "bands": {
36
+ "low": "低度心理困扰",
37
+ "moderate": "中度心理困扰",
38
+ "serious": "重度心理困扰"
39
+ }
40
+ };
41
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for rses. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,52 @@
1
+ /** Simplified Chinese locale pack for rses. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
2
+ const pack = {
3
+ "id": "rses",
4
+ "locale": "zh",
5
+ "title": "罗森伯格自尊量表(RSES)",
6
+ "description": "一份包含10个条目的量表,用于测量总体自我价值感,涵盖对自我的积极和消极情感。",
7
+ "instructions": "以下是一系列关于您对自己总体感受的陈述。请指出您对每条陈述的同意或不同意程度。",
8
+ "options": [
9
+ "非常不同意",
10
+ "不同意",
11
+ "同意",
12
+ "非常同意"
13
+ ],
14
+ "questions": {
15
+ "rses-1": {
16
+ "text": "总的来说,我对自己感到满意"
17
+ },
18
+ "rses-2": {
19
+ "text": "有时我觉得自己一无是处"
20
+ },
21
+ "rses-3": {
22
+ "text": "我觉得自己拥有不少优点"
23
+ },
24
+ "rses-4": {
25
+ "text": "我能够像大多数人一样把事情做好"
26
+ },
27
+ "rses-5": {
28
+ "text": "我觉得自己没有什么值得自豪的地方"
29
+ },
30
+ "rses-6": {
31
+ "text": "有时我确实感到自己毫无用处"
32
+ },
33
+ "rses-7": {
34
+ "text": "我觉得自己是一个有价值的人,至少和别人是平等的"
35
+ },
36
+ "rses-8": {
37
+ "text": "我希望自己能更加尊重自己"
38
+ },
39
+ "rses-9": {
40
+ "text": "总的来说,我倾向于认为自己是个失败者"
41
+ },
42
+ "rses-10": {
43
+ "text": "我对自己持积极的态度"
44
+ }
45
+ },
46
+ "bands": {
47
+ "low": "自尊水平较低",
48
+ "normal": "处于正常范围",
49
+ "high": "自尊水平较高"
50
+ }
51
+ };
52
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for swls. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,44 @@
1
+ /** Simplified Chinese locale pack for swls. AI translation (Anthropic Claude, claude-sonnet-5), unverified — see SOURCES.md. */
2
+ const pack = {
3
+ "id": "swls",
4
+ "locale": "zh",
5
+ "title": "生活满意度量表(SWLS)",
6
+ "description": "一份包含5个条目的量表,用于测量总体生活满意度。",
7
+ "instructions": "以下是五条陈述,您可能同意或不同意。请对每个条目表明您的同意程度。请如实、坦诚地作答。",
8
+ "options": [
9
+ "非常不同意",
10
+ "不同意",
11
+ "有点不同意",
12
+ "既不同意也不反对",
13
+ "有点同意",
14
+ "同意",
15
+ "非常同意"
16
+ ],
17
+ "questions": {
18
+ "swls-1": {
19
+ "text": "在大多数方面,我的生活都接近我理想的状态"
20
+ },
21
+ "swls-2": {
22
+ "text": "我的生活条件非常好"
23
+ },
24
+ "swls-3": {
25
+ "text": "我对自己的生活感到满意"
26
+ },
27
+ "swls-4": {
28
+ "text": "到目前为止,我已经得到了我人生中想要的重要东西"
29
+ },
30
+ "swls-5": {
31
+ "text": "如果能重新来过,我几乎不会做任何改变"
32
+ }
33
+ },
34
+ "bands": {
35
+ "extremely-dissatisfied": "极度不满意",
36
+ "dissatisfied": "不满意",
37
+ "slightly-dissatisfied": "略微不满意",
38
+ "neutral": "中等",
39
+ "slightly-satisfied": "略微满意",
40
+ "satisfied": "满意",
41
+ "extremely-satisfied": "极度满意"
42
+ }
43
+ };
44
+ export default pack;
@@ -132,6 +132,24 @@ export interface CountScoring {
132
132
  }
133
133
  /** Declarative, serializable scoring rules built into psytools. */
134
134
  export type ScoringDefinition = SumScoring | SubscaleScoring | CountScoring;
135
+ /**
136
+ * Categories used by the bundled inventories to describe what an
137
+ * instrument measures. `AssessmentDefinition.categories` accepts any
138
+ * string, so custom assessments are free to define their own taxonomy.
139
+ */
140
+ export type InventoryCategory = "depression" | "anxiety" | "stress" | "well-being" | "adhd" | "autism" | "substance-use" | "personality" | "attachment" | "relationships" | "emotion-regulation" | "sensory-processing" | "distress" | "self-esteem";
141
+ /**
142
+ * Age bands used by the bundled inventories to say who an instrument is
143
+ * *about*. `AssessmentDefinition.audience` accepts any string, so custom
144
+ * assessments are free to define their own bands.
145
+ */
146
+ export type InventoryAudience = "adult" | "adolescent" | "child";
147
+ /**
148
+ * Whose report the answers are, in the bundled inventories.
149
+ * `AssessmentDefinition.respondent` accepts any string, so custom
150
+ * assessments are free to define their own roles.
151
+ */
152
+ export type InventoryRespondent = "self" | "parent" | "teacher" | "clinician";
135
153
  /**
136
154
  * The complete, serializable description of an assessment.
137
155
  *
@@ -143,6 +161,40 @@ export interface AssessmentDefinition {
143
161
  id: string;
144
162
  /** Version of this definition (semver or free-form), for provenance. */
145
163
  version?: string;
164
+ /**
165
+ * What the assessment measures, for filtering and display. Bundled
166
+ * inventories use `InventoryCategory` values; custom definitions may use
167
+ * any strings.
168
+ */
169
+ categories?: string[];
170
+ /**
171
+ * Age band(s) the instrument is written and validated for — who it is
172
+ * *about*, which is the person answering only when `respondent` is
173
+ * `"self"`. An array because one wording is often validated across
174
+ * bands (the RSES is standard for adolescents and adults alike).
175
+ *
176
+ * A retrospective instrument stays with the person answering: an adult
177
+ * recalling their own childhood is `["adult"]` + `"self"`, and the
178
+ * childhood framing belongs in `instructions`. Bundled inventories use
179
+ * `InventoryAudience` values; custom definitions may use any strings.
180
+ */
181
+ audience?: string[];
182
+ /**
183
+ * Whose report the answers are: the person the assessment is about
184
+ * (`"self"`) or a proxy informant (`"parent"`, `"teacher"`, ...). Scalar
185
+ * rather than an array because a definition is written from exactly one
186
+ * point of view — parent- and teacher-report forms of the same
187
+ * instrument are separate definitions with their own item wording
188
+ * ("your child" vs "I"), so they cannot share one entry here.
189
+ *
190
+ * Not the administration mode: a clinician reading the K10 aloud as an
191
+ * interview is still `"self"`, because the answers are the client's own
192
+ * report. `"clinician"` means the clinician is the informant, rating the
193
+ * client from their own observation. `ResponseData.respondentId` then
194
+ * identifies which individual answered. Bundled inventories use
195
+ * `InventoryRespondent` values; custom definitions may use any strings.
196
+ */
197
+ respondent?: string;
146
198
  title: LocalizedText;
147
199
  description?: LocalizedText;
148
200
  /** Instructions shown to the respondent (incl. the recall timeframe). */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "psytools",
3
- "version": "0.5.2",
4
- "description": "Zero-dependency toolkit for psychological assessments: data models, response validation, scoring, and predefined inventories (PHQ-9, GAD-7, DASS-21, WHO-5, ASRS, AQ-10, AUDIT, Mini-IPIP) in multiple languages.",
3
+ "version": "0.5.4",
4
+ "description": "Zero-dependency toolkit for psychological assessments: data models, response validation, scoring, and predefined inventories (PHQ-9, GAD-7, DASS-21, WHO-5, ASRS, AQ-10, AUDIT, Mini-IPIP, CES-D, ECR-R, ERQ, HSPS, SWLS, Flourishing, K10, K6, RSES) in multiple languages.",
5
5
  "keywords": [
6
6
  "psychology",
7
7
  "assessment",
@@ -17,6 +17,22 @@
17
17
  "ipip",
18
18
  "big-five",
19
19
  "personality",
20
+ "ces-d",
21
+ "depression",
22
+ "ecr-r",
23
+ "attachment",
24
+ "erq",
25
+ "emotion-regulation",
26
+ "hsp",
27
+ "sensory-processing",
28
+ "swls",
29
+ "life-satisfaction",
30
+ "flourishing",
31
+ "k10",
32
+ "k6",
33
+ "psychological-distress",
34
+ "rosenberg",
35
+ "self-esteem",
20
36
  "adhd",
21
37
  "autism",
22
38
  "well-being",
@@ -9,6 +9,22 @@
9
9
  "properties": {
10
10
  "id": { "type": "string", "minLength": 1 },
11
11
  "version": { "type": "string" },
12
+ "categories": {
13
+ "type": "array",
14
+ "description": "What the assessment measures, e.g. [\"depression\"]. Bundled inventories use a small controlled vocabulary; custom definitions may use any strings.",
15
+ "items": { "type": "string", "minLength": 1 }
16
+ },
17
+ "audience": {
18
+ "type": "array",
19
+ "description": "Age band(s) the instrument is written and validated for — who it is about, e.g. [\"adult\"]. Bundled inventories use a small controlled vocabulary (adult, adolescent, child); custom definitions may use any strings.",
20
+ "items": { "type": "string", "minLength": 1 }
21
+ },
22
+ "respondent": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "description": "Whose report the answers are: \"self\" for the person the assessment is about, otherwise a proxy informant (\"parent\", \"teacher\", \"clinician\"). Not the administration mode — an interviewer-read self-report is still \"self\". Custom definitions may use any string.",
26
+ "examples": ["self", "parent", "teacher", "clinician"]
27
+ },
12
28
  "title": { "$ref": "#/$defs/localizedText" },
13
29
  "description": { "$ref": "#/$defs/localizedText" },
14
30
  "instructions": { "$ref": "#/$defs/localizedText" },
package/src/index.ts CHANGED
@@ -3,6 +3,9 @@ export type {
3
3
  AssessmentOption,
4
4
  AssessmentQuestion,
5
5
  AssessmentDefinition,
6
+ InventoryCategory,
7
+ InventoryAudience,
8
+ InventoryRespondent,
6
9
  ScoreBand,
7
10
  ScoreFlag,
8
11
  SumScoring,
@@ -50,6 +53,15 @@ export {
50
53
  aq10,
51
54
  audit,
52
55
  miniIpip,
56
+ cesd,
57
+ ecrR,
58
+ erq,
59
+ hsps,
60
+ swls,
61
+ flourishing,
62
+ k10,
63
+ k6,
64
+ rses,
53
65
  inventories,
54
66
  loadInventory,
55
67
  twoWeekFrequencyOptions,
@@ -13,6 +13,9 @@ import type { AssessmentDefinition } from "../types.ts";
13
13
  export const aq10: AssessmentDefinition = {
14
14
  id: "aq10",
15
15
  version: "1.0.0",
16
+ categories: ["autism"],
17
+ audience: ["adult"],
18
+ respondent: "self",
16
19
  title: {
17
20
  en: "Autism Spectrum Quotient (AQ-10) — Adult",
18
21
  },
@@ -3,15 +3,25 @@ import type { AssessmentDefinition } from "../types.ts";
3
3
  /**
4
4
  * ASRS v1.1 — Adult ADHD Self-Report Scale, 6-item screener (Part A).
5
5
  *
6
- * Developed by the WHO and the Workgroup on Adult ADHD (Harvard Medical
7
- * School / NYU). Items 1–3 count as screen-positive from "Sometimes" and
8
- * items 4–6 from "Often"; four or more positive items indicate symptoms
9
- * highly consistent with adult ADHD and warrant further investigation
10
- * (Kessler et al., 2005). Free to distribute and score.
6
+ * A subset of the 18-question ASRS v1.1 Symptom Checklist, developed with the
7
+ * WHO's Workgroup on Adult ADHD. Items 1–3 count as screen-positive from
8
+ * "Sometimes" and items 4–6 from "Often"; four or more positive items indicate
9
+ * symptoms highly consistent with adult ADHD and warrant further investigation
10
+ * (Kessler et al., 2005).
11
+ *
12
+ * Copyright is held by New York University and the President and Fellows of
13
+ * Harvard College, and licensing is administered by NYU Technology
14
+ * Opportunities & Ventures — not by the WHO. Free for clinical, non-clinical
15
+ * and commercial use, but attribution is mandatory: render `meta.attribution`
16
+ * verbatim wherever the screener or its results appear. See `meta.license` for
17
+ * the open question about translation.
11
18
  */
12
19
  export const asrs6: AssessmentDefinition = {
13
20
  id: "asrs6",
14
21
  version: "1.0.0",
22
+ categories: ["adhd"],
23
+ audience: ["adult"],
24
+ respondent: "self",
15
25
  title: {
16
26
  en: "Adult ADHD Self-Report Scale (ASRS-v1.1) Screener",
17
27
  },
@@ -100,8 +110,10 @@ export const asrs6: AssessmentDefinition = {
100
110
  meta: {
101
111
  reference:
102
112
  "Kessler, R. C., Adler, L., Ames, M., Demler, O., Faraone, S., Hiripi, E., et al. (2005). The World Health Organization Adult ADHD Self-Report Scale (ASRS): a short screening scale for use in the general population. Psychological Medicine, 35(2), 245-256.",
113
+ attribution:
114
+ "The 6-question Adult Self-Report Scale-Version1.1 (ASRS-V1.1) Screener is a subset of the 18-question Adult ADHD Self-Report Scale-Version1.1 (Adult ASRSV1.1) Symptom Checklist. © New York University and the President and Fellows of Harvard College.",
103
115
  license:
104
- "Free with conditions — (c) WHO / Workgroup on Adult ADHD; free for clinical and research use. Verify licensing with the rights holders before embedding in commercial products.",
116
+ "Free with conditions — © New York University and the President and Fellows of Harvard College; licensing administered by NYU Technology Opportunities & Ventures (license.tov.med.nyu.edu/product/asrs6Qscreener). Freely available for clinical and non-clinical use, including commercial use, but attribution is required: display meta.attribution verbatim wherever the screener or its results appear. No modifications other than creating electronic versions are permitted, and the license does not say whether translation is a modification — so the standing of the bundled tr/de/zh/es translations is unresolved, pending a question to NYU TOV. See SOURCES.md.",
105
117
  licenseFlag: "free-with-conditions",
106
118
  translationProvenance:
107
119
  "en: reproduced from the original. Other locales (tr, de, zh, es): AI translation (Anthropic Claude, claude-fable-5) from the original English; official translations were not consulted and the texts are unverified. See SOURCES.md.",
@@ -54,6 +54,9 @@ const injuryOptions: AssessmentOption[] = [
54
54
  export const audit: AssessmentDefinition = {
55
55
  id: "audit",
56
56
  version: "1.0.0",
57
+ categories: ["substance-use"],
58
+ audience: ["adult"],
59
+ respondent: "self",
57
60
  title: {
58
61
  en: "Alcohol Use Disorders Identification Test (AUDIT)",
59
62
  },