@jjlmoya/utils-nature 1.3.0 → 1.5.0

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 (70) hide show
  1. package/package.json +2 -1
  2. package/src/category/i18n/de.ts +110 -0
  3. package/src/category/i18n/id.ts +110 -0
  4. package/src/category/i18n/it.ts +110 -0
  5. package/src/category/i18n/ja.ts +110 -0
  6. package/src/category/i18n/ko.ts +110 -0
  7. package/src/category/i18n/nl.ts +110 -0
  8. package/src/category/i18n/pl.ts +110 -0
  9. package/src/category/i18n/pt.ts +110 -0
  10. package/src/category/i18n/ru.ts +110 -0
  11. package/src/category/i18n/sv.ts +110 -0
  12. package/src/category/i18n/tr.ts +110 -0
  13. package/src/category/i18n/zh.ts +110 -0
  14. package/src/category/index.ts +13 -1
  15. package/src/tests/i18n_coverage.test.ts +36 -0
  16. package/src/tests/slug_language_code_format.test.ts +23 -0
  17. package/src/tests/slug_uniqueness.test.ts +81 -0
  18. package/src/tests/tool_validation.test.ts +1 -2
  19. package/src/tool/cricketThermometer/i18n/de.ts +181 -0
  20. package/src/tool/cricketThermometer/i18n/id.ts +181 -0
  21. package/src/tool/cricketThermometer/i18n/it.ts +181 -0
  22. package/src/tool/cricketThermometer/i18n/ja.ts +181 -0
  23. package/src/tool/cricketThermometer/i18n/ko.ts +181 -0
  24. package/src/tool/cricketThermometer/i18n/nl.ts +181 -0
  25. package/src/tool/cricketThermometer/i18n/pl.ts +181 -0
  26. package/src/tool/cricketThermometer/i18n/pt.ts +181 -0
  27. package/src/tool/cricketThermometer/i18n/ru.ts +181 -0
  28. package/src/tool/cricketThermometer/i18n/sv.ts +181 -0
  29. package/src/tool/cricketThermometer/i18n/tr.ts +181 -0
  30. package/src/tool/cricketThermometer/i18n/zh.ts +181 -0
  31. package/src/tool/cricketThermometer/index.ts +15 -7
  32. package/src/tool/digitalCarbon/i18n/de.ts +235 -0
  33. package/src/tool/digitalCarbon/i18n/id.ts +235 -0
  34. package/src/tool/digitalCarbon/i18n/it.ts +235 -0
  35. package/src/tool/digitalCarbon/i18n/ja.ts +235 -0
  36. package/src/tool/digitalCarbon/i18n/ko.ts +235 -0
  37. package/src/tool/digitalCarbon/i18n/nl.ts +235 -0
  38. package/src/tool/digitalCarbon/i18n/pl.ts +235 -0
  39. package/src/tool/digitalCarbon/i18n/pt.ts +235 -0
  40. package/src/tool/digitalCarbon/i18n/ru.ts +235 -0
  41. package/src/tool/digitalCarbon/i18n/sv.ts +235 -0
  42. package/src/tool/digitalCarbon/i18n/tr.ts +235 -0
  43. package/src/tool/digitalCarbon/i18n/zh.ts +235 -0
  44. package/src/tool/digitalCarbon/index.ts +15 -7
  45. package/src/tool/rainHarvester/i18n/de.ts +185 -0
  46. package/src/tool/rainHarvester/i18n/id.ts +185 -0
  47. package/src/tool/rainHarvester/i18n/it.ts +185 -0
  48. package/src/tool/rainHarvester/i18n/ja.ts +185 -0
  49. package/src/tool/rainHarvester/i18n/ko.ts +185 -0
  50. package/src/tool/rainHarvester/i18n/nl.ts +185 -0
  51. package/src/tool/rainHarvester/i18n/pl.ts +185 -0
  52. package/src/tool/rainHarvester/i18n/pt.ts +185 -0
  53. package/src/tool/rainHarvester/i18n/ru.ts +185 -0
  54. package/src/tool/rainHarvester/i18n/sv.ts +185 -0
  55. package/src/tool/rainHarvester/i18n/tr.ts +185 -0
  56. package/src/tool/rainHarvester/i18n/zh.ts +185 -0
  57. package/src/tool/rainHarvester/index.ts +15 -7
  58. package/src/tool/seedCalculator/i18n/de.ts +213 -0
  59. package/src/tool/seedCalculator/i18n/id.ts +213 -0
  60. package/src/tool/seedCalculator/i18n/it.ts +213 -0
  61. package/src/tool/seedCalculator/i18n/ja.ts +213 -0
  62. package/src/tool/seedCalculator/i18n/ko.ts +213 -0
  63. package/src/tool/seedCalculator/i18n/nl.ts +213 -0
  64. package/src/tool/seedCalculator/i18n/pl.ts +213 -0
  65. package/src/tool/seedCalculator/i18n/pt.ts +213 -0
  66. package/src/tool/seedCalculator/i18n/ru.ts +213 -0
  67. package/src/tool/seedCalculator/i18n/sv.ts +213 -0
  68. package/src/tool/seedCalculator/i18n/tr.ts +213 -0
  69. package/src/tool/seedCalculator/i18n/zh.ts +213 -0
  70. package/src/tool/seedCalculator/index.ts +15 -7
@@ -0,0 +1,181 @@
1
+ import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { CricketThermometerUI } from '../ui';
4
+
5
+ const slug = 'termometer-jangkrik';
6
+ const title = 'Termometer Jangkrik – Kalkulator Suhu Hukum Dolbear';
7
+ const description =
8
+ 'Tidak ada termometer? Dengarkan jangkrik. Hitung suhu tepat dengan menghitung kerikan menggunakan kalkulator Hukum Dolbear kami.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'Apa itu Hukum Dolbear?',
13
+ answer:
14
+ 'Dirumuskan pada tahun 1897 oleh Amos Dolbear, ini adalah observasi ilmiah yang menemukan korelasi linier antara laju kerikan jangkrik dan suhu udara sekitar.',
15
+ },
16
+ {
17
+ question: 'Mengapa jangkrik mengerik lebih cepat saat panas?',
18
+ answer:
19
+ 'Jangkrik adalah hewan berdarah dingin (ektoterm). Kecepatan proses metabolisme dan kontraksi otot mereka bergantung pada suhu eksternal; semakin hangat, semakin banyak energi yang mereka miliki untuk mengeluarkan suara dengan cepat.',
20
+ },
21
+ {
22
+ question: 'Apakah pengukuran ini akurat?',
23
+ answer:
24
+ 'Sangat akurat untuk spesies seperti jangkrik pohon salju (Oecanthus fultoni), dengan ambang batas kesalahan sekitar 0,5°C jika dihitung dengan benar. Namun, faktor seperti kelembapan atau angin dapat mengubah hasilnya.',
25
+ },
26
+ {
27
+ question: 'Jangkrik mana yang harus saya gunakan untuk perhitungan?',
28
+ answer:
29
+ 'Formula aslinya didasarkan pada jangkrik pohon salju. Untuk jangkrik lapangan biasa, hubungannya serupa tetapi lajunya cenderung sedikit lebih lambat.',
30
+ },
31
+ ];
32
+
33
+ const howToData = [
34
+ {
35
+ name: 'Temukan jangkrik yang menyendiri',
36
+ text: 'Cari tempat yang tenang di malam hari di mana Anda dapat dengan jelas mendengar kerikan satu jangkrik untuk menghindari kebingungan ritme.',
37
+ },
38
+ {
39
+ name: 'Hitung kerikan selama 15 detik',
40
+ text: 'Gunakan stopwatch dan hitung berapa banyak stridulasi yang dikeluarkan serangga tersebut dalam tepat 15 detik.',
41
+ },
42
+ {
43
+ name: 'Masukkan nilai',
44
+ text: 'Ketuk tombol KETUK (TAP) sesuai irama kerikan selama beberapa detik sehingga kalkulator secara otomatis menghitung BPM.',
45
+ },
46
+ {
47
+ name: 'Verifikasi suhu',
48
+ text: 'Sistem akan menerapkan rumus T(°C) = 10 + (N - 40) / 7 untuk memberi Anda perkiraan panas sekitar dalam derajat Celsius.',
49
+ },
50
+ ];
51
+
52
+ const faqSchema: WithContext<FAQPage> = {
53
+ '@context': 'https://schema.org',
54
+ '@type': 'FAQPage',
55
+ mainEntity: faqData.map((item) => ({
56
+ '@type': 'Question',
57
+ name: item.question,
58
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
59
+ })),
60
+ };
61
+
62
+ const howToSchema: WithContext<HowToThing> = {
63
+ '@context': 'https://schema.org',
64
+ '@type': 'HowTo',
65
+ name: title,
66
+ description,
67
+ step: howToData.map((step, i) => ({
68
+ '@type': 'HowToStep',
69
+ position: i + 1,
70
+ name: step.name,
71
+ text: step.text,
72
+ })),
73
+ };
74
+
75
+ const appSchema: WithContext<SoftwareApplication> = {
76
+ '@context': 'https://schema.org',
77
+ '@type': 'SoftwareApplication',
78
+ name: title,
79
+ description,
80
+ applicationCategory: 'UtilityApplication',
81
+ operatingSystem: 'All',
82
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
83
+ inLanguage: 'id',
84
+ };
85
+
86
+ export const content: ToolLocaleContent<CricketThermometerUI> = {
87
+ slug,
88
+ title,
89
+ description,
90
+ faqTitle: 'Pertanyaan yang Sering Diajukan',
91
+ faq: faqData,
92
+ bibliographyTitle: 'Referensi Ilmiah',
93
+ bibliography: [
94
+ {
95
+ name: 'The American Naturalist - The Cricket as a Thermometer',
96
+ url: 'https://www.jstor.org/stable/2453256',
97
+ },
98
+ {
99
+ name: 'Wikipedia - Dolbear\'s Law',
100
+ url: 'https://en.wikipedia.org/wiki/Dolbear%27s_law',
101
+ },
102
+ ],
103
+ howTo: howToData,
104
+ schemas: [faqSchema, howToSchema, appSchema],
105
+ seo: [
106
+ {
107
+ type: 'title',
108
+ text: 'Panduan Lengkap: Cara Menggunakan Hukum Dolbear untuk Menghitung Suhu',
109
+ level: 2,
110
+ },
111
+ {
112
+ type: 'paragraph',
113
+ html: 'Tahukah Anda bahwa Anda bisa mengetahui suhu tepat hanya dengan mendengarkan alam? Pada tahun 1897, fisikawan Amos Dolbear menemukan hubungan matematis yang tepat antara laju kerikan jangkrik dan panas sekitar. Alat ini mendigitalisasi penemuan tersebut untuk mengubah ponsel Anda menjadi termometer alami.',
114
+ },
115
+ {
116
+ type: 'tip',
117
+ title: 'Mengapa jangkrik bernyanyi?',
118
+ html: '<p>"Nyanyian" jangkrik, atau <strong>stridulasi</strong>, sebenarnya adalah panggilan kawin. Jantan menggosokkan sayap mereka (bukan kaki mereka) bersama-sama untuk menciptakan suara ini. Menariknya, karena mereka adalah hewan berdarah dingin (ektoterm), kecepatan penggosokan ini bergantung langsung pada energi termal udara.</p>',
119
+ },
120
+ {
121
+ type: 'title',
122
+ text: 'Sains: Ektotermi dan Metabolisme',
123
+ level: 3,
124
+ },
125
+ {
126
+ type: 'paragraph',
127
+ html: 'Berbeda dengan mamalia yang menjaga suhu tubuh tetap konstan, serangga bergantung pada panas eksternal. Reaksi biokimia mereka mengikuti <strong>Persamaan Arrhenius</strong>: semakin banyak panas, semakin cepat reaksinya.',
128
+ },
129
+ {
130
+ type: 'paragraph',
131
+ html: 'Ini berarti agar otot jangkrik dapat berkontraksi dan menggosokkan sayapnya, mereka memerlukan reaksi enzimatik. Jika dingin, reaksi ini lambat dan kerikan menjadi lesu. Jika hangat, metabolisme meningkat dan nyanyian menjadi trill yang panik.',
132
+ },
133
+ {
134
+ type: 'title',
135
+ text: 'Rumus Dolbear',
136
+ level: 3,
137
+ },
138
+ {
139
+ type: 'paragraph',
140
+ html: 'Meskipun terdapat variasi untuk spesies yang berbeda, rumus yang paling terkenal adalah untuk jangkrik pohon salju (<em>Oecanthus fultoni</em>). Untuk mendapatkan suhu dalam derajat Celsius:',
141
+ },
142
+ {
143
+ type: 'code',
144
+ code: 'T(°C) = 10 + (N - 40) / 7\n\nDi mana N = jumlah kerikan per menit.',
145
+ ariaLabel: 'Rumus Dolbear untuk menghitung suhu dari kerikan jangkrik',
146
+ },
147
+ {
148
+ type: 'paragraph',
149
+ html: 'Alat kami melakukan ini secara otomatis: ia mengukur waktu di antara ketukan Anda, menghitung kerikan per menit (BPM) dan menerapkan rumus secara instan.',
150
+ },
151
+ {
152
+ type: 'title',
153
+ text: 'Fakta Menarik',
154
+ level: 3,
155
+ },
156
+ {
157
+ type: 'list',
158
+ items: [
159
+ '<strong>Termometer Cinta:</strong> Beberapa teori menunjukkan bahwa betina lebih menyukai jantan yang bernyanyi pada frekuensi yang "benar" untuk suhu saat ini, karena itu menunjukkan jantan tersebut sehat dan memiliki metabolisme yang kuat.',
160
+ '<strong>Batas Dingin:</strong> Di bawah 10°C (50°F), sebagian besar jangkrik berhenti bernyanyi karena metabolisme mereka terlalu lambat untuk mempertahankan upaya otot.',
161
+ '<strong>Sinkronisasi:</strong> Pada malam yang hangat, ribuan jangkrik dapat menyinkronkan kerikan mereka, menciptakan efek suara "gelombang" yang mengesankan.',
162
+ ],
163
+ },
164
+ {
165
+ type: 'tip',
166
+ title: 'Catatan Akurasi',
167
+ html: '<p>Akurasi bergantung pada spesies jangkrik. Alat ini dikalibrasi untuk jangkrik lapangan biasa dan jangkrik pohon. Faktor seperti kelembapan atau angin dapat mengubah hasilnya sebesar ±0,5°C.</p>',
168
+ },
169
+ ],
170
+ ui: {
171
+ labelWaiting: 'Menunggu...',
172
+ labelTapping: 'Terus mengetuk...',
173
+ tapInstruction: 'Setiap kali Anda mendengar kerikan',
174
+ btnReset: 'Reset',
175
+ btnSoundOn: 'Suara: Aktif',
176
+ btnSoundOff: 'Suara: Nonaktif',
177
+ unitChirpsMin: 'kerikan/menit',
178
+ faqTitle: 'Pertanyaan yang Sering Diajukan',
179
+ bibliographyTitle: 'Referensi Ilmiah',
180
+ },
181
+ };
@@ -0,0 +1,181 @@
1
+ import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { CricketThermometerUI } from '../ui';
4
+
5
+ const slug = 'termometro-a-grillo';
6
+ const title = 'Termometro a Grillo – Calcolatore della Temperatura via Legge di Dolbear';
7
+ const description =
8
+ 'Senza termometro? Ascolta i grilli. Calcola la temperatura esatta contando i friniti con il nostro calcolatore basato sulla Legge di Dolbear.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'Cos\'è la Legge di Dolbear?',
13
+ answer:
14
+ 'Formulata nel 1897 da Amos Dolbear, è un\'osservazione scientifica che ha scoperto una correlazione lineare tra la frequenza del frinito dei grilli e la temperatura dell\'aria ambiente.',
15
+ },
16
+ {
17
+ question: 'Perché i grilli friniscono più velocemente con il caldo?',
18
+ answer:
19
+ 'I grilli sono animali a sangue freddo (ectotermi). La velocità dei loro processi metabolici e delle contrazioni muscolari dipende dalla temperatura esterna; più fa caldo, più energia hanno per emettere suoni rapidamente.',
20
+ },
21
+ {
22
+ question: 'Questa misurazione è accurata?',
23
+ answer:
24
+ 'È sorprendentemente accurata per specie come il grillo degli alberi (Oecanthus fultoni), con un margine di errore di circa 0,5°C se contato correttamente. Tuttavia, fattori come l\'umidità o il vento possono alterare il risultato.',
25
+ },
26
+ {
27
+ question: 'Quale grillo dovrei usare per il calcolo?',
28
+ answer:
29
+ 'La formula originale si basa sul grillo degli alberi. Per il comune grillo campestre, la relazione è simile ma la frequenza tende ad essere leggermente più lenta.',
30
+ },
31
+ ];
32
+
33
+ const howToData = [
34
+ {
35
+ name: 'Trova un grillo solitario',
36
+ text: 'Trova un luogo silenzioso di notte dove puoi sentire chiaramente il frinito di un singolo grillo per evitare di confondere i ritmi.',
37
+ },
38
+ {
39
+ name: 'Conta i friniti per 15 secondi',
40
+ text: 'Usa un cronometro e conta quante stridulazioni emette l\'insetto in esattamente 15 secondi.',
41
+ },
42
+ {
43
+ name: 'Inserisci il valore',
44
+ text: 'Tocca il pulsante TAP a ritmo con i friniti per alcuni secondi in modo che il calcolatore calcoli automaticamente i BPM.',
45
+ },
46
+ {
47
+ name: 'Verifica la temperatura',
48
+ text: 'Il sistema applicherà la formula T(°C) = 10 + (N - 40) / 7 per darti una stima del calore ambientale in gradi Celsius.',
49
+ },
50
+ ];
51
+
52
+ const faqSchema: WithContext<FAQPage> = {
53
+ '@context': 'https://schema.org',
54
+ '@type': 'FAQPage',
55
+ mainEntity: faqData.map((item) => ({
56
+ '@type': 'Question',
57
+ name: item.question,
58
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
59
+ })),
60
+ };
61
+
62
+ const howToSchema: WithContext<HowToThing> = {
63
+ '@context': 'https://schema.org',
64
+ '@type': 'HowTo',
65
+ name: title,
66
+ description,
67
+ step: howToData.map((step, i) => ({
68
+ '@type': 'HowToStep',
69
+ position: i + 1,
70
+ name: step.name,
71
+ text: step.text,
72
+ })),
73
+ };
74
+
75
+ const appSchema: WithContext<SoftwareApplication> = {
76
+ '@context': 'https://schema.org',
77
+ '@type': 'SoftwareApplication',
78
+ name: title,
79
+ description,
80
+ applicationCategory: 'UtilityApplication',
81
+ operatingSystem: 'All',
82
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
83
+ inLanguage: 'it',
84
+ };
85
+
86
+ export const content: ToolLocaleContent<CricketThermometerUI> = {
87
+ slug,
88
+ title,
89
+ description,
90
+ faqTitle: 'Domande Frequenti',
91
+ faq: faqData,
92
+ bibliographyTitle: 'Riferimenti Scientifici',
93
+ bibliography: [
94
+ {
95
+ name: 'The American Naturalist - The Cricket as a Thermometer',
96
+ url: 'https://www.jstor.org/stable/2453256',
97
+ },
98
+ {
99
+ name: 'Wikipedia - Dolbear\'s Law',
100
+ url: 'https://en.wikipedia.org/wiki/Dolbear%27s_law',
101
+ },
102
+ ],
103
+ howTo: howToData,
104
+ schemas: [faqSchema, howToSchema, appSchema],
105
+ seo: [
106
+ {
107
+ type: 'title',
108
+ text: 'Guida Completa: Come usare la Legge di Dolbear per Calcolare la Temperatura',
109
+ level: 2,
110
+ },
111
+ {
112
+ type: 'paragraph',
113
+ html: 'Sapevi che puoi conoscere la temperatura esatta solo ascoltando la natura? Nel 1897, il fisico Amos Dolbear scoprì una precisa relazione matematica tra la frequenza dei friniti dei grilli e il calore ambientale. Questo strumento digitalizza quella scoperta per trasformare il tuo telefono in un termometro naturale.',
114
+ },
115
+ {
116
+ type: 'tip',
117
+ title: 'Perché i grilli cantano?',
118
+ html: '<p>Il "canto" del grillo, o <strong>stridulazione</strong>, è in realtà un richiamo d\'accoppiamento. I maschi sfregano le ali (non le zampe) tra loro per creare questo suono. Sorprendentemente, essendo animali a sangue freddo (ectotermi), la velocità di questo sfregamento dipende direttamente dall\'energia termica dell\'aria.</p>',
119
+ },
120
+ {
121
+ type: 'title',
122
+ text: 'La Scienza: Ectotermia e Metabolismo',
123
+ level: 3,
124
+ },
125
+ {
126
+ type: 'paragraph',
127
+ html: 'A differenza dei mammiferi, che mantengono una temperatura corporea costante, gli insetti dipendono dal calore esterno. Le loro reazioni biochimiche seguono l\'<strong>Equazione di Arrhenius</strong>: più calore c\'è, più veloce è la reazione.',
128
+ },
129
+ {
130
+ type: 'paragraph',
131
+ html: 'Ciò significa che affinché i muscoli del grillo si contraggano e sfreghino le ali, hanno bisogno di reazioni enzimatiche. Se fa freddo, queste reazioni sono lente e il frinito è pigro. Se fa caldo, il metabolismo accelera e il canto diventa un trillo frenetico.',
132
+ },
133
+ {
134
+ type: 'title',
135
+ text: 'La Formula di Dolbear',
136
+ level: 3,
137
+ },
138
+ {
139
+ type: 'paragraph',
140
+ html: 'Sebbene esistano variazioni per specie diverse, la formula più famosa è quella per il grillo degli alberi (<em>Oecanthus fultoni</em>). Per ottenere la temperatura in gradi Celsius:',
141
+ },
142
+ {
143
+ type: 'code',
144
+ code: 'T(°C) = 10 + (N - 40) / 7\n\nDove N = numero di friniti al minuto.',
145
+ ariaLabel: 'Formula di Dolbear per calcolare la temperatura dai friniti dei grilli',
146
+ },
147
+ {
148
+ type: 'paragraph',
149
+ html: 'Il nostro strumento lo fa automaticamente: misura il tempo tra i tuoi tocchi, calcola i friniti al minuto (BPM) e applica la formula all\'istante.',
150
+ },
151
+ {
152
+ type: 'title',
153
+ text: 'Fatti Affascinanti',
154
+ level: 3,
155
+ },
156
+ {
157
+ type: 'list',
158
+ items: [
159
+ '<strong>Termometri dell\'Amore:</strong> Alcune teorie suggeriscono che le femmine preferiscano i maschi che cantano alla frequenza "corretta" per la temperatura attuale, poiché indica che il maschio è sano e ha un metabolismo forte.',
160
+ '<strong>Limite del Freddo:</strong> Sotto i 10°C (50°F), la maggior parte dei grilli smette di cantare perché il loro metabolismo è troppo lento per sostenere lo sforzo muscolare.',
161
+ '<strong>Sincronizzazione:</strong> Nelle notti calde, migliaia di grilli possono sincronizzare i loro friniti, creando un impressionante effetto sonoro a "onda".',
162
+ ],
163
+ },
164
+ {
165
+ type: 'tip',
166
+ title: 'Nota sull\'Accuratezza',
167
+ html: '<p>L\'accuratezza dipende dalla specie di grillo. Questo strumento è calibrato per il grillo campestre comune e il grillo degli alberi. Fattori come l\'umidità o il vento possono alterare il risultato di ±0,5°C.</p>',
168
+ },
169
+ ],
170
+ ui: {
171
+ labelWaiting: 'In attesa...',
172
+ labelTapping: 'Continua a toccare...',
173
+ tapInstruction: 'Ogni volta che senti un frinito',
174
+ btnReset: 'Reset',
175
+ btnSoundOn: 'Suono: On',
176
+ btnSoundOff: 'Suono: Off',
177
+ unitChirpsMin: 'friniti/min',
178
+ faqTitle: 'Domande Frequenti',
179
+ bibliographyTitle: 'Riferimenti Scientifici',
180
+ },
181
+ };
@@ -0,0 +1,181 @@
1
+ import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { CricketThermometerUI } from '../ui';
4
+
5
+ const slug = 'cricket-thermometer';
6
+ const title = 'コオロギ温度計 – ドルベアの法則による温度計算機';
7
+ const description =
8
+ '温度計がない?そんな時はコオロギの声を聞きましょう。ドルベアの法則に基づき、鳴き声を数えるだけで正確な温度を算出します。';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'ドルベアの法則とは何ですか?',
13
+ answer:
14
+ '1897年にエイモス・ドルベアによって定式化された、コオロギの鳴き声の頻度と周囲の気温との間に線形相関があることを発見した科学的観察結果です。',
15
+ },
16
+ {
17
+ question: 'なぜ暑いとコオロギは速く鳴くのですか?',
18
+ answer:
19
+ 'コオロギは変温動物(外温動物)です。代謝プロセスや筋肉の収縮速度は外部温度に依存するため、気温が高いほど、素早く音を出すためのエネルギーが活発になります。',
20
+ },
21
+ {
22
+ question: 'この測定は正確ですか?',
23
+ answer:
24
+ 'キンヒバリ(スノー・ツリー・クリケット)などの種では驚くほど正確で、正しく数えれば誤差は約0.5℃以内です。ただし、湿度や風などの要因により結果が変動する場合があります。',
25
+ },
26
+ {
27
+ question: '計算にはどのコオロギを使えばよいですか?',
28
+ answer:
29
+ '元の公式はキンヒバリに基づいています。一般的なエンマコオロギでも同様の相関が見られますが、鳴く速さはわずかに遅くなる傾向があります。',
30
+ },
31
+ ];
32
+
33
+ const howToData = [
34
+ {
35
+ name: '一匹のコオロギを見つける',
36
+ text: 'リズムが混ざらないよう、一匹のコオロギの鳴き声がはっきりと聞こえる静かな場所を夜に見つけます。',
37
+ },
38
+ {
39
+ name: '15秒間の鳴き声を数える',
40
+ text: 'ストップウォッチを使い、15秒間にコオロギが何回鳴いた(発音した)かを数えます。',
41
+ },
42
+ {
43
+ name: '値を入力する',
44
+ text: 'コオロギの鳴き声に合わせて「TAP」ボタンを数秒間タップすると、計算機が自動的にBPMを算出します。',
45
+ },
46
+ {
47
+ name: '温度を確認する',
48
+ text: 'システムが「T(℃) = 10 + (N - 40) / 7」の公式を適用し、推定温度を摂氏で表示します。',
49
+ },
50
+ ];
51
+
52
+ const faqSchema: WithContext<FAQPage> = {
53
+ '@context': 'https://schema.org',
54
+ '@type': 'FAQPage',
55
+ mainEntity: faqData.map((item) => ({
56
+ '@type': 'Question',
57
+ name: item.question,
58
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
59
+ })),
60
+ };
61
+
62
+ const howToSchema: WithContext<HowToThing> = {
63
+ '@context': 'https://schema.org',
64
+ '@type': 'HowTo',
65
+ name: title,
66
+ description,
67
+ step: howToData.map((step, i) => ({
68
+ '@type': 'HowToStep',
69
+ position: i + 1,
70
+ name: step.name,
71
+ text: step.text,
72
+ })),
73
+ };
74
+
75
+ const appSchema: WithContext<SoftwareApplication> = {
76
+ '@context': 'https://schema.org',
77
+ '@type': 'SoftwareApplication',
78
+ name: title,
79
+ description,
80
+ applicationCategory: 'UtilityApplication',
81
+ operatingSystem: 'All',
82
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
83
+ inLanguage: 'ja',
84
+ };
85
+
86
+ export const content: ToolLocaleContent<CricketThermometerUI> = {
87
+ slug,
88
+ title,
89
+ description,
90
+ faqTitle: 'よくある質問',
91
+ faq: faqData,
92
+ bibliographyTitle: '科学的参考文献',
93
+ bibliography: [
94
+ {
95
+ name: 'The American Naturalist - The Cricket as a Thermometer',
96
+ url: 'https://www.jstor.org/stable/2453256',
97
+ },
98
+ {
99
+ name: 'Wikipedia - Dolbear\'s Law',
100
+ url: 'https://en.wikipedia.org/wiki/Dolbear%27s_law',
101
+ },
102
+ ],
103
+ howTo: howToData,
104
+ schemas: [faqSchema, howToSchema, appSchema],
105
+ seo: [
106
+ {
107
+ type: 'title',
108
+ text: '完全ガイド:ドルベアの法則を使って温度を計算する方法',
109
+ level: 2,
110
+ },
111
+ {
112
+ type: 'paragraph',
113
+ html: '自然の音を聞くだけで正確な温度が分かることをご存知ですか?1897年、物理学者のエイモス・ドルベアは、コオロギが鳴く頻度と周囲の温度との間に正確な数学的関係があることを発見しました。このツールはその発見をデジタル化し、あなたのスマートフォンを「天然の温度計」に変身させます。',
114
+ },
115
+ {
116
+ type: 'tip',
117
+ title: 'なぜコオロギは鳴くの?',
118
+ html: '<p>コオロギの「歌」、つまり<strong>発音</strong>は、実は求愛行動です。オスは羽(足ではありません)をこすり合わせてこの音を作ります。興味深いことに、彼らは変温動物(外温動物)であるため、このこすり合わせる速度は空気の熱エネルギーに直接依存しているのです。</p>',
119
+ },
120
+ {
121
+ type: 'title',
122
+ text: '科学の裏側:外温性と代謝',
123
+ level: 3,
124
+ },
125
+ {
126
+ type: 'paragraph',
127
+ html: '体温を一定に保つ哺乳類とは異なり、昆虫は外部の熱に依存しています。彼らの生化学反応は<strong>アレニウスの式</strong>に従います。つまり、熱が加わるほど反応が速くなるのです。',
128
+ },
129
+ {
130
+ type: 'paragraph',
131
+ html: 'これは、コオロギの筋肉が収縮して羽をこするためには酵素反応が必要であることを意味します。寒いとこれらの反応は遅くなり、鳴き声は鈍くなります。暖かいと代謝が加速し、歌は激しいトリルのようになります。',
132
+ },
133
+ {
134
+ type: 'title',
135
+ text: 'ドルベアの公式',
136
+ level: 3,
137
+ },
138
+ {
139
+ type: 'paragraph',
140
+ html: '種によって多少の変動はありますが、最も有名な公式はキンヒバリ(<em>Oecanthus fultoni</em>)のものです。摂氏で温度を算出するには:',
141
+ },
142
+ {
143
+ type: 'code',
144
+ code: 'T(°C) = 10 + (N - 40) / 7\n\nN = 1分間あたりの鳴き声の数',
145
+ ariaLabel: 'コオロギの鳴き声から温度を算出するドルベアの法則',
146
+ },
147
+ {
148
+ type: 'paragraph',
149
+ html: '当ツールはこれを自動で行います。あなたがタップする間隔を測定し、1分間あたりの鳴き声の数(BPM)を計算して、瞬時に公式を適用します。',
150
+ },
151
+ {
152
+ type: 'title',
153
+ text: '驚きの事実',
154
+ level: 3,
155
+ },
156
+ {
157
+ type: 'list',
158
+ items: [
159
+ '<strong>恋の温度計:</strong> メスは、現在の温度に対して「正しい」周波数で歌うオスを好むという説があります。これは、そのオスが健康的で強い代謝を持っていることを示しているからです。',
160
+ '<strong>寒さの限界:</strong> 10℃(50°F)を下回ると、ほとんどのコオロギは筋肉を動かすための代謝が追いつかなくなるため、鳴くのをやめてしまいます。',
161
+ '<strong>シンクロニシティ:</strong> 暖かい夜には、何千匹ものコオロギが同時に鳴き声を同期させ、印象的な「波」のような音響効果を生み出すことがあります。',
162
+ ],
163
+ },
164
+ {
165
+ type: 'tip',
166
+ title: '精度に関する注意',
167
+ html: '<p>精度はコオロギの種類によって異なります。このツールは一般的なエンマコオロギやキンヒバリ向けに調整されています。湿度や風などの要因により、±0.5℃程度の誤差が生じる場合があります。</p>',
168
+ },
169
+ ],
170
+ ui: {
171
+ labelWaiting: '待機中...',
172
+ labelTapping: 'タップを続けてください...',
173
+ tapInstruction: '鳴き声が聞こえるたびにタップ',
174
+ btnReset: 'リセット',
175
+ btnSoundOn: 'サウンド:ON',
176
+ btnSoundOff: 'サウンド:OFF',
177
+ unitChirpsMin: '回/分',
178
+ faqTitle: 'よくある質問',
179
+ bibliographyTitle: '科学的参考文献',
180
+ },
181
+ };