psytools 0.6.3 → 0.6.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 (137) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -6
  3. package/SOURCES.md +58 -1
  4. package/dist/cjs/inventories/gds15.d.ts +11 -0
  5. package/dist/cjs/inventories/gds15.js +81 -0
  6. package/dist/cjs/inventories/index.d.ts +7 -1
  7. package/dist/cjs/inventories/index.js +16 -1
  8. package/dist/cjs/inventories/pc-ptsd-5.d.ts +12 -0
  9. package/dist/cjs/inventories/pc-ptsd-5.js +91 -0
  10. package/dist/cjs/inventories/phq4.d.ts +11 -0
  11. package/dist/cjs/inventories/phq4.js +73 -0
  12. package/dist/cjs/inventories/phq8.d.ts +11 -0
  13. package/dist/cjs/inventories/phq8.js +71 -0
  14. package/dist/cjs/inventories/tipi.d.ts +10 -0
  15. package/dist/cjs/inventories/tipi.js +70 -0
  16. package/dist/cjs/locales/de/gds15.d.ts +4 -0
  17. package/dist/cjs/locales/de/gds15.js +34 -0
  18. package/dist/cjs/locales/de/pc-ptsd-5.d.ts +4 -0
  19. package/dist/cjs/locales/de/pc-ptsd-5.js +32 -0
  20. package/dist/cjs/locales/de/phq4.d.ts +4 -0
  21. package/dist/cjs/locales/de/phq4.js +35 -0
  22. package/dist/cjs/locales/de/phq8.d.ts +4 -0
  23. package/dist/cjs/locales/de/phq8.js +35 -0
  24. package/dist/cjs/locales/de/tipi.d.ts +4 -0
  25. package/dist/cjs/locales/de/tipi.js +39 -0
  26. package/dist/cjs/locales/es/gds15.d.ts +4 -0
  27. package/dist/cjs/locales/es/gds15.js +34 -0
  28. package/dist/cjs/locales/es/pc-ptsd-5.d.ts +4 -0
  29. package/dist/cjs/locales/es/pc-ptsd-5.js +32 -0
  30. package/dist/cjs/locales/es/phq4.d.ts +4 -0
  31. package/dist/cjs/locales/es/phq4.js +35 -0
  32. package/dist/cjs/locales/es/phq8.d.ts +4 -0
  33. package/dist/cjs/locales/es/phq8.js +35 -0
  34. package/dist/cjs/locales/es/tipi.d.ts +4 -0
  35. package/dist/cjs/locales/es/tipi.js +39 -0
  36. package/dist/cjs/locales/index.js +30 -0
  37. package/dist/cjs/locales/tr/gds15.d.ts +4 -0
  38. package/dist/cjs/locales/tr/gds15.js +34 -0
  39. package/dist/cjs/locales/tr/pc-ptsd-5.d.ts +4 -0
  40. package/dist/cjs/locales/tr/pc-ptsd-5.js +32 -0
  41. package/dist/cjs/locales/tr/phq4.d.ts +4 -0
  42. package/dist/cjs/locales/tr/phq4.js +35 -0
  43. package/dist/cjs/locales/tr/phq8.d.ts +4 -0
  44. package/dist/cjs/locales/tr/phq8.js +33 -0
  45. package/dist/cjs/locales/tr/tipi.d.ts +4 -0
  46. package/dist/cjs/locales/tr/tipi.js +39 -0
  47. package/dist/cjs/locales/zh/gds15.d.ts +4 -0
  48. package/dist/cjs/locales/zh/gds15.js +34 -0
  49. package/dist/cjs/locales/zh/pc-ptsd-5.d.ts +4 -0
  50. package/dist/cjs/locales/zh/pc-ptsd-5.js +32 -0
  51. package/dist/cjs/locales/zh/phq4.d.ts +4 -0
  52. package/dist/cjs/locales/zh/phq4.js +35 -0
  53. package/dist/cjs/locales/zh/phq8.d.ts +4 -0
  54. package/dist/cjs/locales/zh/phq8.js +31 -0
  55. package/dist/cjs/locales/zh/tipi.d.ts +4 -0
  56. package/dist/cjs/locales/zh/tipi.js +31 -0
  57. package/dist/esm/inventories/gds15.d.ts +11 -0
  58. package/dist/esm/inventories/gds15.js +78 -0
  59. package/dist/esm/inventories/index.d.ts +7 -1
  60. package/dist/esm/inventories/index.js +11 -0
  61. package/dist/esm/inventories/pc-ptsd-5.d.ts +12 -0
  62. package/dist/esm/inventories/pc-ptsd-5.js +88 -0
  63. package/dist/esm/inventories/phq4.d.ts +11 -0
  64. package/dist/esm/inventories/phq4.js +70 -0
  65. package/dist/esm/inventories/phq8.d.ts +11 -0
  66. package/dist/esm/inventories/phq8.js +68 -0
  67. package/dist/esm/inventories/tipi.d.ts +10 -0
  68. package/dist/esm/inventories/tipi.js +67 -0
  69. package/dist/esm/locales/de/gds15.d.ts +4 -0
  70. package/dist/esm/locales/de/gds15.js +32 -0
  71. package/dist/esm/locales/de/pc-ptsd-5.d.ts +4 -0
  72. package/dist/esm/locales/de/pc-ptsd-5.js +30 -0
  73. package/dist/esm/locales/de/phq4.d.ts +4 -0
  74. package/dist/esm/locales/de/phq4.js +33 -0
  75. package/dist/esm/locales/de/phq8.d.ts +4 -0
  76. package/dist/esm/locales/de/phq8.js +33 -0
  77. package/dist/esm/locales/de/tipi.d.ts +4 -0
  78. package/dist/esm/locales/de/tipi.js +37 -0
  79. package/dist/esm/locales/es/gds15.d.ts +4 -0
  80. package/dist/esm/locales/es/gds15.js +32 -0
  81. package/dist/esm/locales/es/pc-ptsd-5.d.ts +4 -0
  82. package/dist/esm/locales/es/pc-ptsd-5.js +30 -0
  83. package/dist/esm/locales/es/phq4.d.ts +4 -0
  84. package/dist/esm/locales/es/phq4.js +33 -0
  85. package/dist/esm/locales/es/phq8.d.ts +4 -0
  86. package/dist/esm/locales/es/phq8.js +33 -0
  87. package/dist/esm/locales/es/tipi.d.ts +4 -0
  88. package/dist/esm/locales/es/tipi.js +37 -0
  89. package/dist/esm/locales/index.js +30 -0
  90. package/dist/esm/locales/tr/gds15.d.ts +4 -0
  91. package/dist/esm/locales/tr/gds15.js +32 -0
  92. package/dist/esm/locales/tr/pc-ptsd-5.d.ts +4 -0
  93. package/dist/esm/locales/tr/pc-ptsd-5.js +30 -0
  94. package/dist/esm/locales/tr/phq4.d.ts +4 -0
  95. package/dist/esm/locales/tr/phq4.js +33 -0
  96. package/dist/esm/locales/tr/phq8.d.ts +4 -0
  97. package/dist/esm/locales/tr/phq8.js +31 -0
  98. package/dist/esm/locales/tr/tipi.d.ts +4 -0
  99. package/dist/esm/locales/tr/tipi.js +37 -0
  100. package/dist/esm/locales/zh/gds15.d.ts +4 -0
  101. package/dist/esm/locales/zh/gds15.js +32 -0
  102. package/dist/esm/locales/zh/pc-ptsd-5.d.ts +4 -0
  103. package/dist/esm/locales/zh/pc-ptsd-5.js +30 -0
  104. package/dist/esm/locales/zh/phq4.d.ts +4 -0
  105. package/dist/esm/locales/zh/phq4.js +33 -0
  106. package/dist/esm/locales/zh/phq8.d.ts +4 -0
  107. package/dist/esm/locales/zh/phq8.js +29 -0
  108. package/dist/esm/locales/zh/tipi.d.ts +4 -0
  109. package/dist/esm/locales/zh/tipi.js +29 -0
  110. package/package.json +11 -3
  111. package/src/inventories/gds15.ts +87 -0
  112. package/src/inventories/index.ts +17 -1
  113. package/src/inventories/pc-ptsd-5.ts +96 -0
  114. package/src/inventories/phq4.ts +76 -0
  115. package/src/inventories/phq8.ts +73 -0
  116. package/src/inventories/tipi.ts +74 -0
  117. package/src/locales/de/gds15.ts +35 -0
  118. package/src/locales/de/pc-ptsd-5.ts +35 -0
  119. package/src/locales/de/phq4.ts +37 -0
  120. package/src/locales/de/phq8.ts +37 -0
  121. package/src/locales/de/tipi.ts +42 -0
  122. package/src/locales/es/gds15.ts +35 -0
  123. package/src/locales/es/pc-ptsd-5.ts +35 -0
  124. package/src/locales/es/phq4.ts +37 -0
  125. package/src/locales/es/phq8.ts +38 -0
  126. package/src/locales/es/tipi.ts +42 -0
  127. package/src/locales/index.ts +30 -0
  128. package/src/locales/tr/gds15.ts +35 -0
  129. package/src/locales/tr/pc-ptsd-5.ts +35 -0
  130. package/src/locales/tr/phq4.ts +37 -0
  131. package/src/locales/tr/phq8.ts +35 -0
  132. package/src/locales/tr/tipi.ts +42 -0
  133. package/src/locales/zh/gds15.ts +35 -0
  134. package/src/locales/zh/pc-ptsd-5.ts +35 -0
  135. package/src/locales/zh/phq4.ts +36 -0
  136. package/src/locales/zh/phq8.ts +32 -0
  137. package/src/locales/zh/tipi.ts +33 -0
@@ -0,0 +1,37 @@
1
+ /** Spanish locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "tipi",
4
+ locale: "es",
5
+ title: "Inventario de Personalidad de Diez Ítems (TIPI)",
6
+ description: "Un instrumento de 10 ítems que mide las cinco grandes dimensiones de la personalidad, pensado para cuando se necesita una medida muy breve.",
7
+ instructions: "A continuación hay una serie de rasgos de personalidad que pueden aplicarse o no a usted. Escriba un número junto a cada afirmación para indicar en qué medida está de acuerdo o en desacuerdo con ella. Valore en qué medida el par de rasgos se aplica a usted, aunque una de las características se aplique más que la otra. Me veo como una persona:",
8
+ options: [
9
+ "Muy en desacuerdo",
10
+ "Moderadamente en desacuerdo",
11
+ "Un poco en desacuerdo",
12
+ "Ni de acuerdo ni en desacuerdo",
13
+ "Un poco de acuerdo",
14
+ "Moderadamente de acuerdo",
15
+ "Muy de acuerdo",
16
+ ],
17
+ questions: {
18
+ "tipi-1": { text: "Extravertida, entusiasta." },
19
+ "tipi-2": { text: "Crítica, peleona." },
20
+ "tipi-3": { text: "Fiable, autodisciplinada." },
21
+ "tipi-4": { text: "Ansiosa, que se altera con facilidad." },
22
+ "tipi-5": { text: "Abierta a nuevas experiencias, compleja." },
23
+ "tipi-6": { text: "Reservada, callada." },
24
+ "tipi-7": { text: "Comprensiva, cálida." },
25
+ "tipi-8": { text: "Desorganizada, descuidada." },
26
+ "tipi-9": { text: "Tranquila, emocionalmente estable." },
27
+ "tipi-10": { text: "Convencional, poco creativa." },
28
+ },
29
+ subscales: {
30
+ extraversion: { label: "Extraversión" },
31
+ agreeableness: { label: "Amabilidad" },
32
+ conscientiousness: { label: "Responsabilidad" },
33
+ "emotional-stability": { label: "Estabilidad emocional" },
34
+ openness: { label: "Apertura a la experiencia" },
35
+ },
36
+ };
37
+ export default pack;
@@ -163,6 +163,36 @@ export const localePacks = {
163
163
  zh: () => import("./zh/cbi.js"),
164
164
  es: () => import("./es/cbi.js"),
165
165
  },
166
+ "pc-ptsd-5": {
167
+ tr: () => import("./tr/pc-ptsd-5.js"),
168
+ de: () => import("./de/pc-ptsd-5.js"),
169
+ zh: () => import("./zh/pc-ptsd-5.js"),
170
+ es: () => import("./es/pc-ptsd-5.js"),
171
+ },
172
+ "phq4": {
173
+ tr: () => import("./tr/phq4.js"),
174
+ de: () => import("./de/phq4.js"),
175
+ zh: () => import("./zh/phq4.js"),
176
+ es: () => import("./es/phq4.js"),
177
+ },
178
+ "phq8": {
179
+ tr: () => import("./tr/phq8.js"),
180
+ de: () => import("./de/phq8.js"),
181
+ zh: () => import("./zh/phq8.js"),
182
+ es: () => import("./es/phq8.js"),
183
+ },
184
+ "gds15": {
185
+ tr: () => import("./tr/gds15.js"),
186
+ de: () => import("./de/gds15.js"),
187
+ zh: () => import("./zh/gds15.js"),
188
+ es: () => import("./es/gds15.js"),
189
+ },
190
+ "tipi": {
191
+ tr: () => import("./tr/tipi.js"),
192
+ de: () => import("./de/tipi.js"),
193
+ zh: () => import("./zh/tipi.js"),
194
+ es: () => import("./es/tipi.js"),
195
+ },
166
196
  };
167
197
  /** Locales available for an inventory (its base locale plus lazy packs). */
168
198
  export function availableLocales(inventoryId) {
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Turkish locale pack for gds15. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,32 @@
1
+ /** Turkish locale pack for gds15. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "gds15",
4
+ locale: "tr",
5
+ title: "Geriatrik Depresyon Ölçeği, Kısa Form (GDS-15)",
6
+ description: "Yaşlı yetişkinlerde depresyonu taramak için evet/hayır yanıtlı, 15 maddelik bir ölçek.",
7
+ instructions: "Son bir haftada kendinizi nasıl hissettiğinize en uygun yanıtı seçin:",
8
+ options: ["Evet", "Hayır"],
9
+ questions: {
10
+ "gds15-1": { text: "Hayatınızdan genel olarak memnun musunuz?" },
11
+ "gds15-2": { text: "Etkinliklerinizin ve ilgi alanlarınızın çoğunu bıraktınız mı?" },
12
+ "gds15-3": { text: "Hayatınızın boş olduğunu hissediyor musunuz?" },
13
+ "gds15-4": { text: "Sık sık canınız sıkılır mı?" },
14
+ "gds15-5": { text: "Çoğu zaman keyfiniz yerinde mi?" },
15
+ "gds15-6": { text: "Başınıza kötü bir şey geleceğinden korkuyor musunuz?" },
16
+ "gds15-7": { text: "Çoğu zaman kendinizi mutlu hissediyor musunuz?" },
17
+ "gds15-8": { text: "Sık sık kendinizi çaresiz hissediyor musunuz?" },
18
+ "gds15-9": { text: "Dışarı çıkıp yeni şeyler yapmak yerine evde kalmayı mı tercih edersiniz?" },
19
+ "gds15-10": { text: "Belleğinizle ilgili çoğu insandan daha fazla sorun yaşadığınızı düşünüyor musunuz?" },
20
+ "gds15-11": { text: "Şu anda hayatta olmanın harika bir şey olduğunu düşünüyor musunuz?" },
21
+ "gds15-12": { text: "Şu anki hâlinizle kendinizi oldukça değersiz hissediyor musunuz?" },
22
+ "gds15-13": { text: "Kendinizi enerji dolu hissediyor musunuz?" },
23
+ "gds15-14": { text: "Durumunuzun umutsuz olduğunu hissediyor musunuz?" },
24
+ "gds15-15": { text: "Çoğu insanın sizden daha iyi durumda olduğunu düşünüyor musunuz?" },
25
+ },
26
+ bands: {
27
+ "below-cutoff": "Takip eşiğinin altında",
28
+ suggestive: "Depresyonu düşündürüyor: takip görüşmesi gerekir",
29
+ likely: "Neredeyse her zaman depresyon",
30
+ },
31
+ };
32
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Turkish locale pack for pc-ptsd-5. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,30 @@
1
+ /** Turkish locale pack for pc-ptsd-5. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "pc-ptsd-5",
4
+ locale: "tr",
5
+ title: "DSM-5 için Birinci Basamak TSSB Taraması (PC-PTSD-5)",
6
+ description: "Olası travma sonrası stres bozukluğu için kısa bir tarama: yaşam boyu travmatik bir olay yaşanıp yaşanmadığına dair bir soru, ardından bu olayın son bir ayda kişiyi nasıl etkilediğine dair beş evet/hayır sorusu.",
7
+ instructions: "Bazen insanların başına alışılmadık ölçüde ya da özellikle korkutucu, dehşet verici veya travmatik olaylar gelir. Örneğin: ciddi bir kaza ya da yangın; fiziksel ya da cinsel saldırı veya istismar; deprem ya da sel; savaş; birinin öldürüldüğünü ya da ağır yaralandığını görmek; bir yakınını cinayet ya da intihar sonucu kaybetmek.",
8
+ options: ["Evet", "Hayır"],
9
+ questions: {
10
+ "pc-ptsd-5-trauma": {
11
+ text: "Hiç bu türden bir olay yaşadınız mı? Yanıtınız hayır ise tarama puanı 0'dır. Lütfen burada durun. Yanıtınız evet ise lütfen aşağıdaki soruları yanıtlayın.",
12
+ },
13
+ "pc-ptsd-5-1": {
14
+ text: "Son bir ay içinde olay(lar)la ilgili kâbuslar gördünüz mü ya da istemediğiniz hâlde olay(lar)ı düşündünüz mü?",
15
+ },
16
+ "pc-ptsd-5-2": {
17
+ text: "Son bir ay içinde olay(lar)ı düşünmemek için çok çaba gösterdiniz mi ya da size olay(lar)ı hatırlatan durumlardan kaçınmak için özellikle uğraştınız mı?",
18
+ },
19
+ "pc-ptsd-5-3": {
20
+ text: "Son bir ay içinde sürekli tetikte ya da diken üstünde oldunuz mu, kolayca irkildiniz mi?",
21
+ },
22
+ "pc-ptsd-5-4": {
23
+ text: "Son bir ay içinde insanlara, etkinliklere ya da çevrenize karşı duygusuzlaşmış ya da kopmuş hissettiniz mi?",
24
+ },
25
+ "pc-ptsd-5-5": {
26
+ text: "Son bir ay içinde olay(lar) ya da olay(lar)ın yol açmış olabileceği sorunlar yüzünden suçluluk duydunuz mu ya da kendinizi veya başkalarını suçlamayı bırakamadınız mı?",
27
+ },
28
+ },
29
+ };
30
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Turkish locale pack for phq4. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,33 @@
1
+ /** Turkish locale pack for phq4. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "phq4",
4
+ locale: "tr",
5
+ title: "Hasta Sağlığı Anketi-4 (PHQ-4)",
6
+ description: "Kaygı ve depresyon için 2 maddelik GAD-2 ile PHQ-2'den oluşan, 4 maddelik çok kısa bir tarama aracı.",
7
+ instructions: "Son 2 hafta içinde aşağıdaki sorunlar sizi ne sıklıkta rahatsız etti?",
8
+ options: ["Hiç", "Birkaç gün", "Günlerin yarısından fazlasında", "Hemen hemen her gün"],
9
+ questions: {
10
+ "phq4-1": { text: "Gergin, kaygılı ya da diken üstünde hissetmek" },
11
+ "phq4-2": { text: "Endişelenmeyi durduramamak ya da kontrol edememek" },
12
+ "phq4-3": { text: "Bir şeyler yapmaktan çok az ilgi ya da keyif almak" },
13
+ "phq4-4": { text: "Kendini moralsiz, çökkün ya da umutsuz hissetmek" },
14
+ },
15
+ subscales: {
16
+ anxiety: {
17
+ label: "Kaygı (GAD-2)",
18
+ bands: {
19
+ "below-cutoff": "Tarama eşiğinin altında",
20
+ positive: "Tarama olumlu: GAD-7 ve klinik görüşmeyle değerlendirin",
21
+ },
22
+ },
23
+ depression: {
24
+ label: "Depresyon (PHQ-2)",
25
+ bands: {
26
+ "below-cutoff": "Tarama eşiğinin altında",
27
+ positive: "Tarama olumlu: PHQ-9 ve klinik görüşmeyle değerlendirin",
28
+ },
29
+ },
30
+ total: { label: "Toplam (PHQ-4)" },
31
+ },
32
+ };
33
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Turkish locale pack for phq8. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,31 @@
1
+ /** Turkish locale pack for phq8. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "phq8",
4
+ locale: "tr",
5
+ title: "Hasta Sağlığı Anketi-8 (PHQ-8)",
6
+ description: "Depresyon şiddetini ölçen 8 maddelik bir öz bildirim ölçeği: PHQ-9'un kendine zarar verme düşüncelerini soran maddesi çıkarılmış hâli.",
7
+ instructions: "Son 2 hafta içinde aşağıdaki sorunlardan herhangi biri sizi ne sıklıkta rahatsız etti?",
8
+ options: ["Hiç", "Birkaç gün", "Günlerin yarısından fazlasında", "Hemen hemen her gün"],
9
+ questions: {
10
+ "phq8-1": { text: "Bir şeyler yapmaktan çok az ilgi ya da keyif almak" },
11
+ "phq8-2": { text: "Kendini moralsiz, çökkün ya da umutsuz hissetmek" },
12
+ "phq8-3": { text: "Uykuya dalmakta ya da uykuyu sürdürmekte güçlük çekmek ya da çok fazla uyumak" },
13
+ "phq8-4": { text: "Yorgun hissetmek ya da çok az enerjisi olmak" },
14
+ "phq8-5": { text: "İştahsızlık ya da aşırı yemek" },
15
+ "phq8-6": {
16
+ text: "Kendiniz hakkında kötü hissetmek ya da başarısız biri olduğunuzu veya kendinizi ya da ailenizi hayal kırıklığına uğrattığınızı düşünmek",
17
+ },
18
+ "phq8-7": { text: "Gazete okumak ya da televizyon izlemek gibi şeylere odaklanmakta güçlük çekmek" },
19
+ "phq8-8": {
20
+ text: "Başkalarının fark edebileceği kadar yavaş hareket etmek ya da konuşmak? Ya da tam tersi: her zamankinden çok daha fazla hareket edecek kadar kıpır kıpır ya da huzursuz olmak",
21
+ },
22
+ },
23
+ bands: {
24
+ minimal: "En az düzeyde depresyon",
25
+ mild: "Hafif depresyon",
26
+ moderate: "Orta düzeyde depresyon",
27
+ "moderately-severe": "Orta-ağır düzeyde depresyon",
28
+ severe: "Ağır depresyon",
29
+ },
30
+ };
31
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Turkish locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,37 @@
1
+ /** Turkish locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "tipi",
4
+ locale: "tr",
5
+ title: "On Maddelik Kişilik Envanteri (TIPI)",
6
+ description: "Çok kısa bir ölçüm gereken durumlar için Beş Faktör kişilik boyutlarını ölçen 10 maddelik bir araç.",
7
+ instructions: "Aşağıda size uyabilecek ya da uymayabilecek bazı kişilik özellikleri yer alıyor. Her ifadeye ne ölçüde katıldığınızı ya da katılmadığınızı belirtmek için ifadenin yanına bir sayı yazın. Özelliklerden biri size daha çok uysa bile, iki özelliğin birlikte size ne ölçüde uyduğunu değerlendirin. Kendimi şöyle görüyorum:",
8
+ options: [
9
+ "Kesinlikle katılmıyorum",
10
+ "Orta derecede katılmıyorum",
11
+ "Biraz katılmıyorum",
12
+ "Ne katılıyorum ne katılmıyorum",
13
+ "Biraz katılıyorum",
14
+ "Orta derecede katılıyorum",
15
+ "Kesinlikle katılıyorum",
16
+ ],
17
+ questions: {
18
+ "tipi-1": { text: "Dışa dönük, coşkulu." },
19
+ "tipi-2": { text: "Eleştirel, kavgacı." },
20
+ "tipi-3": { text: "Güvenilir, öz disiplinli." },
21
+ "tipi-4": { text: "Kaygılı, kolay üzülen." },
22
+ "tipi-5": { text: "Yeni deneyimlere açık, çok yönlü." },
23
+ "tipi-6": { text: "Çekingen, sessiz." },
24
+ "tipi-7": { text: "Anlayışlı, sıcak." },
25
+ "tipi-8": { text: "Dağınık, dikkatsiz." },
26
+ "tipi-9": { text: "Sakin, duygusal olarak dengeli." },
27
+ "tipi-10": { text: "Geleneksel, yaratıcı olmayan." },
28
+ },
29
+ subscales: {
30
+ extraversion: { label: "Dışa dönüklük" },
31
+ agreeableness: { label: "Uyumluluk" },
32
+ conscientiousness: { label: "Sorumluluk" },
33
+ "emotional-stability": { label: "Duygusal denge" },
34
+ openness: { label: "Deneyime açıklık" },
35
+ },
36
+ };
37
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for gds15. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,32 @@
1
+ /** Simplified Chinese locale pack for gds15. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "gds15",
4
+ locale: "zh",
5
+ title: "老年抑郁量表简版(GDS-15)",
6
+ description: "一份用于筛查老年人抑郁的 15 题是/否量表。",
7
+ instructions: "请根据您过去一周的感受,选择最合适的答案:",
8
+ options: ["是", "否"],
9
+ questions: {
10
+ "gds15-1": { text: "您对自己的生活基本满意吗?" },
11
+ "gds15-2": { text: "您是否放弃了许多活动和兴趣?" },
12
+ "gds15-3": { text: "您是否觉得生活很空虚?" },
13
+ "gds15-4": { text: "您是否常常感到无聊?" },
14
+ "gds15-5": { text: "您大部分时间心情都很好吗?" },
15
+ "gds15-6": { text: "您是否害怕会有不好的事情发生在自己身上?" },
16
+ "gds15-7": { text: "您大部分时间都感到快乐吗?" },
17
+ "gds15-8": { text: "您是否常常感到无助?" },
18
+ "gds15-9": { text: "您是否宁愿待在家里,也不愿出门做些新的事情?" },
19
+ "gds15-10": { text: "您是否觉得自己的记忆问题比大多数人多?" },
20
+ "gds15-11": { text: "您是否觉得现在活着是一件很美好的事?" },
21
+ "gds15-12": { text: "您是否觉得现在的自己相当没有价值?" },
22
+ "gds15-13": { text: "您是否感到精力充沛?" },
23
+ "gds15-14": { text: "您是否觉得自己的处境没有希望?" },
24
+ "gds15-15": { text: "您是否认为大多数人的境况都比您好?" },
25
+ },
26
+ bands: {
27
+ "below-cutoff": "低于需要随访的阈值",
28
+ suggestive: "提示存在抑郁:需要进行随访访谈",
29
+ likely: "几乎总是抑郁",
30
+ },
31
+ };
32
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for pc-ptsd-5. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,30 @@
1
+ /** Simplified Chinese locale pack for pc-ptsd-5. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "pc-ptsd-5",
4
+ locale: "zh",
5
+ title: "DSM-5 初级保健创伤后应激障碍筛查(PC-PTSD-5)",
6
+ description: "一项针对可能的创伤后应激障碍的简短筛查:先询问一生中是否经历过创伤事件,再用五个是/否问题询问该创伤在过去一个月里对本人的影响。",
7
+ instructions: "有时人们会遇到异常或特别可怕、恐怖或具有创伤性的事情。例如:严重的事故或火灾;身体或性方面的攻击或虐待;地震或洪水;战争;目睹有人被杀或受重伤;亲人因他杀或自杀而离世。",
8
+ options: ["是", "否"],
9
+ questions: {
10
+ "pc-ptsd-5-trauma": {
11
+ text: "您是否经历过这类事件?如果否,筛查总分 = 0,请在此停止。如果是,请回答下面的问题。",
12
+ },
13
+ "pc-ptsd-5-1": {
14
+ text: "在过去一个月里,您是否做过与该(些)事件有关的噩梦,或在不愿意的时候想起该(些)事件?",
15
+ },
16
+ "pc-ptsd-5-2": {
17
+ text: "在过去一个月里,您是否极力不去想该(些)事件,或刻意回避会让您想起该(些)事件的情境?",
18
+ },
19
+ "pc-ptsd-5-3": {
20
+ text: "在过去一个月里,您是否一直保持戒备、警觉,或容易受惊吓?",
21
+ },
22
+ "pc-ptsd-5-4": {
23
+ text: "在过去一个月里,您是否感到麻木,或与他人、日常活动或周围环境疏离?",
24
+ },
25
+ "pc-ptsd-5-5": {
26
+ text: "在过去一个月里,您是否因该(些)事件或其可能引起的任何问题而感到内疚,或无法停止责怪自己或他人?",
27
+ },
28
+ },
29
+ };
30
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for phq4. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,33 @@
1
+ /** Simplified Chinese locale pack for phq4. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "phq4",
4
+ locale: "zh",
5
+ title: "患者健康问卷-4(PHQ-4)",
6
+ description: "一份由 GAD-2 和 PHQ-2 组成的 4 题超简短焦虑与抑郁筛查工具。",
7
+ instructions: "在过去 2 周里,以下问题困扰您的频率如何?",
8
+ options: ["完全没有", "有几天", "超过一半的天数", "几乎每天"],
9
+ questions: {
10
+ "phq4-1": { text: "感到紧张、焦虑或心神不宁" },
11
+ "phq4-2": { text: "无法停止或控制担忧" },
12
+ "phq4-3": { text: "做事情时缺乏兴趣或乐趣" },
13
+ "phq4-4": { text: "感到情绪低落、抑郁或绝望" },
14
+ },
15
+ subscales: {
16
+ anxiety: {
17
+ label: "焦虑(GAD-2)",
18
+ bands: {
19
+ "below-cutoff": "低于筛查临界值",
20
+ positive: "筛查阳性:请用 GAD-7 和临床访谈进一步评估",
21
+ },
22
+ },
23
+ depression: {
24
+ label: "抑郁(PHQ-2)",
25
+ bands: {
26
+ "below-cutoff": "低于筛查临界值",
27
+ positive: "筛查阳性:请用 PHQ-9 和临床访谈进一步评估",
28
+ },
29
+ },
30
+ total: { label: "总分(PHQ-4)" },
31
+ },
32
+ };
33
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for phq8. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,29 @@
1
+ /** Simplified Chinese locale pack for phq8. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "phq8",
4
+ locale: "zh",
5
+ title: "患者健康问卷-8(PHQ-8)",
6
+ description: "一份用于测量抑郁严重程度的 8 题自评问卷:即去掉自伤想法条目的 PHQ-9。",
7
+ instructions: "在过去 2 周里,以下任何问题困扰您的频率如何?",
8
+ options: ["完全没有", "有几天", "超过一半的天数", "几乎每天"],
9
+ questions: {
10
+ "phq8-1": { text: "做事情时缺乏兴趣或乐趣" },
11
+ "phq8-2": { text: "感到情绪低落、抑郁或绝望" },
12
+ "phq8-3": { text: "难以入睡或难以保持睡眠,或睡得太多" },
13
+ "phq8-4": { text: "感到疲倦或缺乏精力" },
14
+ "phq8-5": { text: "食欲不振或吃得过多" },
15
+ "phq8-6": { text: "对自己感觉很糟,或觉得自己很失败,或让自己或家人失望" },
16
+ "phq8-7": { text: "难以集中注意力做事,例如读报纸或看电视" },
17
+ "phq8-8": {
18
+ text: "动作或说话慢到别人可能已经察觉?或者相反:坐立不安、烦躁,以致比平时活动多得多",
19
+ },
20
+ },
21
+ bands: {
22
+ minimal: "极轻微抑郁",
23
+ mild: "轻度抑郁",
24
+ moderate: "中度抑郁",
25
+ "moderately-severe": "中重度抑郁",
26
+ severe: "重度抑郁",
27
+ },
28
+ };
29
+ export default pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,29 @@
1
+ /** Simplified Chinese locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
2
+ const pack = {
3
+ id: "tipi",
4
+ locale: "zh",
5
+ title: "十项人格量表(TIPI)",
6
+ description: "一份测量大五人格维度的 10 题工具,适用于需要非常简短测量的场合。",
7
+ instructions: "以下是一些可能适合也可能不适合您的人格特质。请在每项描述旁写下一个数字,表示您同意或不同意该描述的程度。即使其中一个特点比另一个更符合您,也请评价这一对特质整体上在多大程度上符合您。我认为自己是:",
8
+ options: ["非常不同意", "比较不同意", "有点不同意", "既不同意也不反对", "有点同意", "比较同意", "非常同意"],
9
+ questions: {
10
+ "tipi-1": { text: "外向的,热情的。" },
11
+ "tipi-2": { text: "爱挑剔的,好争吵的。" },
12
+ "tipi-3": { text: "可靠的,自律的。" },
13
+ "tipi-4": { text: "焦虑的,容易心烦的。" },
14
+ "tipi-5": { text: "乐于接受新体验的,复杂的。" },
15
+ "tipi-6": { text: "矜持的,安静的。" },
16
+ "tipi-7": { text: "富有同情心的,温暖的。" },
17
+ "tipi-8": { text: "缺乏条理的,粗心的。" },
18
+ "tipi-9": { text: "冷静的,情绪稳定的。" },
19
+ "tipi-10": { text: "守旧的,缺乏创造力的。" },
20
+ },
21
+ subscales: {
22
+ extraversion: { label: "外向性" },
23
+ agreeableness: { label: "宜人性" },
24
+ conscientiousness: { label: "尽责性" },
25
+ "emotional-stability": { label: "情绪稳定性" },
26
+ openness: { label: "经验开放性" },
27
+ },
28
+ };
29
+ export default pack;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "psytools",
3
- "version": "0.6.3",
4
- "description": "Zero-dependency toolkit for psychological assessments: data models, response validation, scoring, and predefined inventories (PHQ-9, PHQ-15, GAD-7, DASS-21, WHO-5, ASRS, AQ-10, AUDIT, Mini-IPIP, Mini-IPIP6, CES-D, ECR-R, ERQ, HSPS, SWLS, Flourishing, K10, K6, RSES, IPIP BIS/BAS, IPIP-NEO-60, IPIP-VIA-R, PCL-5, EAT-26, CSI-16, UCLA Loneliness Scale) in multiple languages.",
3
+ "version": "0.6.4",
4
+ "description": "Zero-dependency toolkit for psychological assessments: data models, response validation, scoring, and predefined inventories (PHQ-9, PHQ-15, GAD-7, DASS-21, WHO-5, ASRS, AQ-10, AUDIT, Mini-IPIP, Mini-IPIP6, CES-D, ECR-R, ERQ, HSPS, SWLS, Flourishing, K10, K6, RSES, IPIP BIS/BAS, IPIP-NEO-60, IPIP-VIA-R, PCL-5, EAT-26, CSI-16, UCLA Loneliness Scale, CBI, PC-PTSD-5, PHQ-4, PHQ-8, GDS-15, TIPI) in multiple languages.",
5
5
  "keywords": [
6
6
  "psychology",
7
7
  "assessment",
@@ -58,7 +58,15 @@
58
58
  "csi-16",
59
59
  "relationship-satisfaction",
60
60
  "ucla-loneliness-scale",
61
- "loneliness"
61
+ "loneliness",
62
+ "cbi",
63
+ "burnout",
64
+ "pc-ptsd-5",
65
+ "phq-4",
66
+ "phq-8",
67
+ "gds-15",
68
+ "geriatric-depression",
69
+ "tipi"
62
70
  ],
63
71
  "license": "SEE LICENSE IN LICENSE",
64
72
  "author": "Samed Kahyaoglu <samed@luckys.dev>",
@@ -0,0 +1,87 @@
1
+ import type { AssessmentDefinition, AssessmentOption } from "../types.ts";
2
+
3
+ /** Yes/no, with "yes" scoring 1. Items keyed on "no" are `reverseScored`. */
4
+ const yesNoOptions: AssessmentOption[] = [
5
+ { value: 1, label: { en: "Yes" } },
6
+ { value: 0, label: { en: "No" } },
7
+ ];
8
+
9
+ /** Items where "no" is the answer that indicates depression. */
10
+ const keyedNo = new Set([1, 5, 7, 11, 13]);
11
+
12
+ const items: string[] = [
13
+ "Are you basically satisfied with your life?",
14
+ "Have you dropped many of your activities and interests?",
15
+ "Do you feel that your life is empty?",
16
+ "Do you often get bored?",
17
+ "Are you in good spirits most of the time?",
18
+ "Are you afraid that something bad is going to happen to you?",
19
+ "Do you feel happy most of the time?",
20
+ "Do you often feel helpless?",
21
+ "Do you prefer to stay at home, rather than going out and doing new things?",
22
+ "Do you feel you have more problems with memory than most?",
23
+ "Do you think it is wonderful to be alive now?",
24
+ "Do you feel pretty worthless the way you are now?",
25
+ "Do you feel full of energy?",
26
+ "Do you feel that your situation is hopeless?",
27
+ "Do you think that most people are better off than you are?",
28
+ ];
29
+
30
+ /**
31
+ * GDS-15: Geriatric Depression Scale, short form.
32
+ *
33
+ * 15 yes/no items about the past week, one point per answer in the
34
+ * depressive direction, total 0-15. "No" is the depressive answer on
35
+ * items 1, 5, 7, 11 and 13 (modelled as `reverseScored`), "yes" on the
36
+ * other ten. Bands follow the authors' own scoring page: more than 5
37
+ * suggests depression, more than 10 is almost always depression.
38
+ */
39
+ export const gds15: AssessmentDefinition = {
40
+ id: "gds15",
41
+ version: "1.0.0",
42
+ categories: ["depression"],
43
+ audience: ["adult"],
44
+ respondent: "self",
45
+ title: {
46
+ en: "Geriatric Depression Scale, Short Form (GDS-15)",
47
+ },
48
+ description: {
49
+ en: "A 15-item yes/no screening scale for depression in older adults.",
50
+ },
51
+ instructions: {
52
+ en: "Choose the best answer for how you have felt over the past week:",
53
+ },
54
+ defaultLocale: "en",
55
+ options: yesNoOptions,
56
+ questions: items.map((text, i) => ({
57
+ id: `gds15-${i + 1}`,
58
+ text: { en: text },
59
+ ...(keyedNo.has(i + 1) ? { reverseScored: true } : {}),
60
+ })),
61
+ scoring: {
62
+ kind: "sum",
63
+ missing: { strategy: "prorate", minAnswered: 10 },
64
+ bands: [
65
+ { id: "below-cutoff", min: 0, max: 5, label: { en: "Below the follow-up threshold" } },
66
+ {
67
+ id: "suggestive",
68
+ min: 6,
69
+ max: 10,
70
+ label: { en: "Suggestive of depression: a follow-up interview is warranted" },
71
+ },
72
+ { id: "likely", min: 11, max: 15, label: { en: "Almost always depression" } },
73
+ ],
74
+ },
75
+ meta: {
76
+ reference:
77
+ "Sheikh, J. I., & Yesavage, J. A. (1986). Geriatric Depression Scale (GDS): Recent evidence and development of a shorter version. In Clinical Gerontology: A Guide to Assessment and Intervention (pp. 165-173). New York: The Haworth Press.",
78
+ license:
79
+ "Free: \"The original scale is in the public domain due to it being partly the result of Federal support\" (J. A. Yesavage, https://web.stanford.edu/~yesavage/GDS.html). See SOURCES.md for how this statement is read for the short form.",
80
+ licenseFlag: "free",
81
+ translationProvenance:
82
+ "en: transcribed from the authors' \"Short Form English\" page, https://web.stanford.edu/~yesavage/GDS.english.short.html, with the keyed answers taken from \"Short Form English Scoring\", https://web.stanford.edu/~yesavage/GDS.english.short.score.html (fetched 2026-11-21). Other locales (tr, de, zh, es): AI translation (Anthropic Claude, claude-opus-5-5) from the original English; the translations listed on the authors' page were not consulted and the texts are unverified. See SOURCES.md.",
83
+ timeframe: "past week",
84
+ scoringNote:
85
+ "Sum 0-15, one point per answer in the depressive direction: \"no\" on items 1, 5, 7, 11, 13 and \"yes\" on the rest. Bands follow the authors' scoring page: \"for clinical purposes a score > 5 points is suggestive of depression and should warrent a follow-up interview. Scores > 10 are almost always depression.\" The same page notes that sensitivity and specificity differ across studies. Missing data: the authors prorate (score x 15 / answered) and would treat more than 5 missing items as invalid, so at least 10 answers are required; they round a fractional result up, while psytools rounds to the nearest integer.",
86
+ },
87
+ };
@@ -30,10 +30,16 @@ import { eat26 } from "./eat26.ts";
30
30
  import { csi16 } from "./csi16.ts";
31
31
  import { uclaLs3 } from "./ucla-ls3.ts";
32
32
  import { cbi } from "./cbi.ts";
33
+ import { pcPtsd5 } from "./pc-ptsd-5.ts";
34
+ import { phq4 } from "./phq4.ts";
35
+ import { phq8 } from "./phq8.ts";
36
+ import { gds15 } from "./gds15.ts";
37
+ import { tipi } from "./tipi.ts";
33
38
 
34
39
  export { phq9, gad7, dass21, who5, asrs6, aq10, audit, miniIpip, cesd, ecrR, erq, hsps, swls, flourishing, k10, k6, rses };
35
40
  export { miniIpip6, bisBas, ipipNeo60, ipipViaR };
36
41
  export { phq15, pcl5, eat26, csi16, uclaLs3, cbi };
42
+ export { pcPtsd5, phq4, phq8, gds15, tipi };
37
43
  export { twoWeekFrequencyOptions, twoWeekInstructions } from "./common.ts";
38
44
 
39
45
  /** All predefined inventory definitions shipped with psytools, by id. */
@@ -65,6 +71,11 @@ export const inventories: Readonly<Record<string, AssessmentDefinition>> = {
65
71
  csi16,
66
72
  "ucla-ls3": uclaLs3,
67
73
  cbi,
74
+ "pc-ptsd-5": pcPtsd5,
75
+ phq4,
76
+ phq8,
77
+ gds15,
78
+ tipi,
68
79
  };
69
80
 
70
81
  export type InventoryId =
@@ -94,7 +105,12 @@ export type InventoryId =
94
105
  | "eat26"
95
106
  | "csi16"
96
107
  | "ucla-ls3"
97
- | "cbi";
108
+ | "cbi"
109
+ | "pc-ptsd-5"
110
+ | "phq4"
111
+ | "phq8"
112
+ | "gds15"
113
+ | "tipi";
98
114
 
99
115
  /**
100
116
  * Instantiates a predefined inventory as an `Assessment`.