DawnC commited on
Commit
8c6cdcb
1 Parent(s): ae5f815

Upload 3 files

Browse files
Files changed (3) hide show
  1. animal_detector.db +0 -0
  2. breed_health_info.py +2054 -0
  3. data_manager.py +777 -0
animal_detector.db ADDED
Binary file (180 kB). View file
 
breed_health_info.py ADDED
@@ -0,0 +1,2054 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ breed_health_info = {
3
+ "Afghan_Hound": {
4
+ "health_notes": """
5
+ Common breed-specific health considerations (Source: AKC):
6
+ • Hip dysplasia
7
+ • Juvenile cataracts
8
+ • Laryngeal paralysis
9
+ • Hypothyroidism
10
+
11
+ Recommended health screenings:
12
+ • Hip evaluation
13
+ • Thyroid evaluation
14
+ • Eye examination
15
+ • Regular dental check-ups
16
+ """,
17
+ "source": "AKC Health Database, 2024"
18
+ },
19
+
20
+ "African_Hunting_Dog": {
21
+ "health_notes": """
22
+ Common breed-specific health considerations (Source: AKC):
23
+ • Hip dysplasia
24
+ • Eye problems
25
+ • Dental issues
26
+ • Heat sensitivity
27
+
28
+ Recommended health screenings:
29
+ • Hip evaluation
30
+ • Regular eye examinations
31
+ • Dental check-ups
32
+ • Temperature tolerance monitoring
33
+ """,
34
+ "source": "AKC Health Database, 2024"
35
+ },
36
+
37
+ "Airedale": {
38
+ "health_notes": """
39
+ Common breed-specific health considerations (Source: AKC):
40
+ • Hip dysplasia
41
+ • Eye problems including glaucoma
42
+ • Hypothyroidism
43
+ • Allergies
44
+
45
+ Recommended health screenings:
46
+ • Hip and elbow evaluation
47
+ • Thyroid testing
48
+ • Eye examination
49
+ • Regular allergy monitoring
50
+ """,
51
+ "source": "AKC Health Database, 2024"
52
+ },
53
+
54
+ "American_Staffordshire_Terrier": {
55
+ "health_notes": """
56
+ Common breed-specific health considerations (Source: AKC):
57
+ • Hip dysplasia
58
+ • Cardiac issues
59
+ • Skin allergies
60
+ • Cerebellar ataxia
61
+
62
+ Recommended health screenings:
63
+ • Hip evaluation
64
+ • Cardiac examination
65
+ • Regular skin checkups
66
+ • Genetic testing for cerebellar ataxia
67
+ """,
68
+ "source": "AKC Health Database, 2024"
69
+ },
70
+
71
+ "Appenzeller": {
72
+ "health_notes": """
73
+ Common breed-specific health considerations (Source: AKC):
74
+ • Hip dysplasia
75
+ • Elbow dysplasia
76
+ • Hemophilia
77
+ • Eye problems
78
+
79
+ Recommended health screenings:
80
+ • Hip and elbow evaluation
81
+ • Blood clotting tests
82
+ • Eye examination
83
+ • Regular joint assessments
84
+ """,
85
+ "source": "AKC Health Database, 2024"
86
+ },
87
+
88
+ "Australian_Terrier": {
89
+ "health_notes": """
90
+ Common breed-specific health considerations (Source: AKC):
91
+ • Diabetes mellitus
92
+ • Patellar luxation
93
+ • Thyroid issues
94
+ • Legg-Calve-Perthes disease
95
+
96
+ Recommended health screenings:
97
+ • Regular blood sugar monitoring
98
+ • Patella evaluation
99
+ • Thyroid testing
100
+ • Hip and leg examinations
101
+ """,
102
+ "source": "AKC Health Database, 2024"
103
+ },
104
+
105
+ "Bedlington_Terrier": {
106
+ "health_notes": """
107
+ Common breed-specific health considerations (Source: AKC):
108
+ • Copper toxicosis
109
+ • Retinal dysplasia
110
+ • Distichiasis
111
+ • Renal cortical hypoplasia
112
+
113
+ Recommended health screenings:
114
+ • Liver function tests
115
+ • Eye examination
116
+ • Kidney function testing
117
+ • DNA test for copper toxicosis
118
+ """,
119
+ "source": "AKC Health Database, 2024"
120
+ },
121
+
122
+ "Bernese_Mountain_Dog": {
123
+ "health_notes": """
124
+ Common breed-specific health considerations (Source: AKC):
125
+ • Hip and elbow dysplasia
126
+ • Cancer (histiocytic sarcoma)
127
+ • Von Willebrand's disease
128
+ • Progressive retinal atrophy
129
+
130
+ Recommended health screenings:
131
+ • Hip and elbow evaluation
132
+ • Regular cancer screenings
133
+ • Blood clotting tests
134
+ • Eye examination
135
+ """,
136
+ "source": "AKC Health Database, 2024"
137
+ },
138
+
139
+ "Blenheim_Spaniel": {
140
+ "health_notes": """
141
+ Common breed-specific health considerations (Source: AKC):
142
+ • Syringomyelia
143
+ • Mitral valve disease
144
+ • Patellar luxation
145
+ • Eye conditions
146
+
147
+ Recommended health screenings:
148
+ • MRI scanning for syringomyelia
149
+ • Cardiac examination
150
+ • Patella evaluation
151
+ • Regular eye checks
152
+ """,
153
+ "source": "AKC Health Database, 2024"
154
+ },
155
+
156
+ "Border_Collie": {
157
+ "health_notes": """
158
+ Common breed-specific health considerations (Source: AKC):
159
+ • Hip dysplasia
160
+ • Collie eye anomaly
161
+ • Epilepsy
162
+ • Neuronal ceroid lipofuscinosis
163
+
164
+ Recommended health screenings:
165
+ • Hip evaluation
166
+ • Eye examination
167
+ • Neurological assessment
168
+ • DNA testing for genetic conditions
169
+ """,
170
+ "source": "AKC Health Database, 2024"
171
+ },
172
+
173
+ "Border_Terrier": {
174
+ "health_notes": """
175
+ Common breed-specific health considerations (Source: AKC):
176
+ • Spike's disease (CECS)
177
+ • Hip dysplasia
178
+ • Heart problems
179
+ • Progressive retinal atrophy
180
+
181
+ Recommended health screenings:
182
+ • Regular neurological examinations
183
+ • Hip evaluation
184
+ • Cardiac examination
185
+ • Eye examination
186
+ """,
187
+ "source": "AKC Health Database, 2024"
188
+ },
189
+
190
+ "Boston_Bull": {
191
+ "health_notes": """
192
+ Common breed-specific health considerations (Source: AKC):
193
+ • Patellar luxation
194
+ • Cataracts
195
+ • Deafness
196
+ • Brachycephalic syndrome
197
+
198
+ Recommended health screenings:
199
+ • Patella evaluation
200
+ • Eye examination
201
+ • Hearing tests
202
+ • Regular respiratory assessment
203
+ """,
204
+ "source": "AKC Health Database, 2024"
205
+ },
206
+
207
+ "Bouvier_Des_Flandres": {
208
+ "health_notes": """
209
+ Common breed-specific health considerations (Source: AKC):
210
+ • Hip dysplasia
211
+ • Elbow dysplasia
212
+ • Glaucoma
213
+ • Hypothyroidism
214
+
215
+ Recommended health screenings:
216
+ • Hip and elbow evaluation
217
+ • Eye examination
218
+ • Thyroid testing
219
+ • Regular joint assessments
220
+ """,
221
+ "source": "AKC Health Database, 2024"
222
+ },
223
+
224
+ "Brabancon_Griffon": {
225
+ "health_notes": """
226
+ Common breed-specific health considerations (Source: AKC):
227
+ • Syringomyelia
228
+ • Patellar luxation
229
+ • Eye problems
230
+ • Respiratory issues
231
+
232
+ Recommended health screenings:
233
+ • MRI screening
234
+ • Patella evaluation
235
+ • Eye examination
236
+ • Regular respiratory checks
237
+ """,
238
+ "source": "AKC Health Database, 2024"
239
+ },
240
+
241
+ "Brittany_Spaniel": {
242
+ "health_notes": """
243
+ Common breed-specific health considerations (Source: AKC):
244
+ • Hip dysplasia
245
+ • Epilepsy
246
+ • Hypothyroidism
247
+ • Eye problems
248
+
249
+ Recommended health screenings:
250
+ • Hip evaluation
251
+ • Thyroid testing
252
+ • Eye examination
253
+ • Regular neurological check-ups
254
+ """,
255
+ "source": "AKC Health Database, 2024"
256
+ },
257
+
258
+ "Cardigan": {
259
+ "health_notes": """
260
+ Common breed-specific health considerations (Source: AKC):
261
+ • Hip dysplasia
262
+ • Progressive retinal atrophy
263
+ • Degenerative myelopathy
264
+ • Intervertebral disk disease
265
+
266
+ Recommended health screenings:
267
+ • Hip evaluation
268
+ • Eye examination
269
+ • DNA test for DM
270
+ • Regular spine assessments
271
+ """,
272
+ "source": "AKC Health Database, 2024"
273
+ },
274
+
275
+ "Chesapeake_Bay_Retriever": {
276
+ "health_notes": """
277
+ Common breed-specific health considerations (Source: AKC):
278
+ • Hip dysplasia
279
+ • Progressive retinal atrophy
280
+ • Degenerative myelopathy
281
+ • Von Willebrand's disease
282
+
283
+ Recommended health screenings:
284
+ • Hip and elbow evaluation
285
+ • Eye examination
286
+ • DNA testing for PRA
287
+ • Blood clotting tests
288
+ """,
289
+ "source": "AKC Health Database, 2024"
290
+ },
291
+
292
+ "Chihuahua": {
293
+ "health_notes": """
294
+ Common breed-specific health considerations (Source: AKC):
295
+ • Patellar luxation
296
+ • Heart murmurs
297
+ • Hydrocephalus
298
+ • Dental problems
299
+
300
+ Recommended health screenings:
301
+ • Patella evaluation
302
+ • Cardiac examination
303
+ • Regular dental check-ups
304
+ • Neurological assessment
305
+ """,
306
+ "source": "AKC Health Database, 2024"
307
+ },
308
+
309
+ "Dandie_Dinmont": {
310
+ "health_notes": """
311
+ Common breed-specific health considerations (Source: AKC):
312
+ • Glaucoma
313
+ • Intervertebral disk disease
314
+ • Hypothyroidism
315
+ • Eye problems
316
+
317
+ Recommended health screenings:
318
+ • Eye examination
319
+ • Spine evaluation
320
+ • Thyroid testing
321
+ • Regular joint assessments
322
+ """,
323
+ "source": "AKC Health Database, 2024"
324
+ },
325
+
326
+ "Doberman": {
327
+ "health_notes": """
328
+ Common breed-specific health considerations (Source: AKC):
329
+ • Dilated cardiomyopathy
330
+ • Von Willebrand's disease
331
+ • Hip dysplasia
332
+ • Cervical vertebral instability
333
+
334
+ Recommended health screenings:
335
+ • Cardiac examination
336
+ • Blood clotting tests
337
+ • Hip evaluation
338
+ • Regular spine assessments
339
+ """,
340
+ "source": "AKC Health Database, 2024"
341
+ },
342
+
343
+ "English_Foxhound": {
344
+ "health_notes": """
345
+ Common breed-specific health considerations (Source: AKC):
346
+ • Hip dysplasia
347
+ • Renal disease
348
+ • Epilepsy
349
+ • Thrombocytopathy
350
+
351
+ Recommended health screenings:
352
+ • Hip evaluation
353
+ • Kidney function tests
354
+ • Regular neurological exams
355
+ • Blood platelet testing
356
+ """,
357
+ "source": "AKC Health Database, 2024"
358
+ },
359
+
360
+ "English_Setter": {
361
+ "health_notes": """
362
+ Common breed-specific health considerations (Source: AKC):
363
+ • Hip dysplasia
364
+ • Elbow dysplasia
365
+ • Hypothyroidism
366
+ • Deafness
367
+
368
+ Recommended health screenings:
369
+ • Hip and elbow evaluation
370
+ • Thyroid testing
371
+ • Hearing tests
372
+ • Regular joint assessments
373
+ """,
374
+ "source": "AKC Health Database, 2024"
375
+ },
376
+
377
+ "English_Springer": {
378
+ "health_notes": """
379
+ Common breed-specific health considerations (Source: AKC):
380
+ • Hip dysplasia
381
+ • Progressive retinal atrophy
382
+ • Phosphofructokinase deficiency
383
+ • Ear infections
384
+
385
+ Recommended health screenings:
386
+ • Hip evaluation
387
+ • Eye examination
388
+ • DNA testing for PFK
389
+ • Regular ear checks
390
+ """,
391
+ "source": "AKC Health Database, 2024"
392
+ },
393
+
394
+ "EntleBucher": {
395
+ "health_notes": """
396
+ Common breed-specific health considerations (Source: AKC):
397
+ • Hip dysplasia
398
+ • Progressive retinal atrophy
399
+ • Hemolytic anemia
400
+ • Ectopic ureters
401
+
402
+ Recommended health screenings:
403
+ • Hip evaluation
404
+ • Eye examination
405
+ • Blood tests
406
+ • Urinary tract assessment
407
+ """,
408
+ "source": "AKC Health Database, 2024"
409
+ },
410
+
411
+ "Eskimo_Dog": {
412
+ "health_notes": """
413
+ Common breed-specific health considerations (Source: AKC):
414
+ • Hip dysplasia
415
+ • Progressive retinal atrophy
416
+ • Bloat
417
+ • Heat sensitivity
418
+
419
+ Recommended health screenings:
420
+ • Hip evaluation
421
+ • Eye examination
422
+ • Regular bloat prevention
423
+ • Temperature tolerance monitoring
424
+ """,
425
+ "source": "AKC Health Database, 2024"
426
+ },
427
+
428
+ "French_Bulldog": {
429
+ "health_notes": """
430
+ Common breed-specific health considerations (Source: AKC):
431
+ • Brachycephalic syndrome
432
+ • Hip dysplasia
433
+ • Intervertebral disk disease
434
+ • Heat sensitivity
435
+
436
+ Recommended health screenings:
437
+ • Respiratory assessment
438
+ • Hip evaluation
439
+ • Spine examination
440
+ • Regular temperature monitoring
441
+ """,
442
+ "source": "AKC Health Database, 2024"
443
+ },
444
+
445
+ "German_Shepherd": {
446
+ "health_notes": """
447
+ Common breed-specific health considerations (Source: AKC):
448
+ • Hip dysplasia
449
+ • Elbow dysplasia
450
+ • Degenerative myelopathy
451
+ • Bloat
452
+
453
+ Recommended health screenings:
454
+ • Hip and elbow evaluation
455
+ • DNA testing for DM
456
+ • Regular spine assessments
457
+ • Bloat prevention monitoring
458
+ """,
459
+ "source": "AKC Health Database, 2024"
460
+ },
461
+
462
+ "German_Short-Haired_Pointer": {
463
+ "health_notes": """
464
+ Common breed-specific health considerations (Source: AKC):
465
+ • Hip dysplasia
466
+ • Lymphedema
467
+ • Von Willebrand's disease
468
+ • Entropion
469
+
470
+ Recommended health screenings:
471
+ • Hip evaluation
472
+ • Regular lymphatic checks
473
+ • Blood clotting tests
474
+ • Eye examination
475
+ """,
476
+ "source": "AKC Health Database, 2024"
477
+ },
478
+
479
+ "Gordon_Setter": {
480
+ "health_notes": """
481
+ Common breed-specific health considerations (Source: AKC):
482
+ • Hip dysplasia
483
+ • Elbow dysplasia
484
+ • Cerebellar abiotrophy
485
+ • Progressive retinal atrophy
486
+
487
+ Recommended health screenings:
488
+ • Hip and elbow evaluation
489
+ • Neurological assessment
490
+ • Eye examination
491
+ • Regular joint checks
492
+ """,
493
+ "source": "AKC Health Database, 2024"
494
+ },
495
+
496
+ "Great_Dane": {
497
+ "health_notes": """
498
+ Common breed-specific health considerations (Source: AKC):
499
+ • Hip dysplasia
500
+ • Bloat
501
+ • Cardiomyopathy
502
+ • Wobbler syndrome
503
+
504
+ Recommended health screenings:
505
+ • Hip evaluation
506
+ • Cardiac examination
507
+ • Regular bloat prevention
508
+ • Spine assessment
509
+ """,
510
+ "source": "AKC Health Database, 2024"
511
+ },
512
+
513
+ "Great_Pyrenees": {
514
+ "health_notes": """
515
+ Common breed-specific health considerations (Source: AKC):
516
+ • Hip dysplasia
517
+ • Elbow dysplasia
518
+ • Bloat
519
+ • Patellar luxation
520
+
521
+ Recommended health screenings:
522
+ • Hip and elbow evaluation
523
+ • Regular bloat prevention
524
+ • Patella evaluation
525
+ • Eye examination
526
+ """,
527
+ "source": "AKC Health Database, 2024"
528
+ },
529
+
530
+ "Greater_Swiss_Mountain_Dog": {
531
+ "health_notes": """
532
+ Common breed-specific health considerations (Source: AKC):
533
+ • Hip dysplasia
534
+ • Elbow dysplasia
535
+ • Bloat
536
+ • Epilepsy
537
+
538
+ Recommended health screenings:
539
+ • Hip and elbow evaluation
540
+ • Regular bloat monitoring
541
+ • Neurological assessment
542
+ • Eye examination
543
+ """,
544
+ "source": "AKC Health Database, 2024"
545
+ },
546
+
547
+ "Ibizan_Hound": {
548
+ "health_notes": """
549
+ Common breed-specific health considerations (Source: AKC):
550
+ • Retinal degeneration
551
+ • Seizures
552
+ • Allergies
553
+ • Hip dysplasia
554
+
555
+ Recommended health screenings:
556
+ • Eye examination
557
+ • Neurological assessment
558
+ • Allergy testing
559
+ • Hip evaluation
560
+ """,
561
+ "source": "AKC Health Database, 2024"
562
+ },
563
+
564
+ "Irish_Setter": {
565
+ "health_notes": """
566
+ Common breed-specific health considerations (Source: AKC):
567
+ • Hip dysplasia
568
+ • Progressive retinal atrophy
569
+ • Bloat
570
+ • Epilepsy
571
+
572
+ Recommended health screenings:
573
+ • Hip evaluation
574
+ • Eye examination
575
+ • Regular bloat prevention
576
+ • Neurological assessment
577
+ """,
578
+ "source": "AKC Health Database, 2024"
579
+ },
580
+
581
+ "Irish_Terrier": {
582
+ "health_notes": """
583
+ Common breed-specific health considerations (Source: AKC):
584
+ • Hyperkeratosis
585
+ • Cystinuria
586
+ • Musculoskeletal problems
587
+ • Eye problems
588
+
589
+ Recommended health screenings:
590
+ • Regular paw pad checks
591
+ • Urinary testing
592
+ • Joint evaluation
593
+ • Eye examination
594
+ """,
595
+ "source": "AKC Health Database, 2024"
596
+ },
597
+
598
+ "Irish_Water_Spaniel": {
599
+ "health_notes": """
600
+ Common breed-specific health considerations (Source: AKC):
601
+ • Hip dysplasia
602
+ • Elbow dysplasia
603
+ • Eye problems
604
+ • Follicular dysplasia
605
+
606
+ Recommended health screenings:
607
+ • Hip and elbow evaluation
608
+ • Eye examination
609
+ • Regular skin checks
610
+ • Thyroid testing
611
+ """,
612
+ "source": "AKC Health Database, 2024"
613
+ },
614
+
615
+ "Irish_Wolfhound": {
616
+ "health_notes": """
617
+ Common breed-specific health considerations (Source: AKC):
618
+ • Heart disease
619
+ • Osteosarcoma
620
+ • Hip dysplasia
621
+ • Von Willebrand's disease
622
+
623
+ Recommended health screenings:
624
+ • Cardiac examination
625
+ • Regular cancer screening
626
+ • Hip evaluation
627
+ • Blood clotting tests
628
+ """,
629
+ "source": "AKC Health Database, 2024"
630
+ },
631
+
632
+ "Italian_Greyhound": {
633
+ "health_notes": """
634
+ Common breed-specific health considerations (Source: AKC):
635
+ • Epilepsy
636
+ • Patellar luxation
637
+ • Progressive retinal atrophy
638
+ • Periodontal disease
639
+
640
+ Recommended health screenings:
641
+ • Neurological assessment
642
+ • Patella evaluation
643
+ • Eye examination
644
+ • Regular dental checks
645
+ """,
646
+ "source": "AKC Health Database, 2024"
647
+ },
648
+
649
+ "Japanese_Spaniel": {
650
+ "health_notes": """
651
+ Common breed-specific health considerations (Source: AKC):
652
+ • Heart murmurs
653
+ • Patellar luxation
654
+ • Eye problems
655
+ • Respiratory issues
656
+
657
+ Recommended health screenings:
658
+ • Cardiac examination
659
+ • Patella evaluation
660
+ • Eye examination
661
+ • Regular respiratory checks
662
+ """,
663
+ "source": "AKC Health Database, 2024"
664
+ },
665
+
666
+ "Kerry_Blue_Terrier": {
667
+ "health_notes": """
668
+ Common breed-specific health considerations (Source: AKC):
669
+ • Hip dysplasia
670
+ • Eye problems
671
+ • Cysts
672
+ • Spiculosis
673
+
674
+ Recommended health screenings:
675
+ • Hip evaluation
676
+ • Eye examination
677
+ • Regular skin checks
678
+ • Dental examination
679
+ """,
680
+ "source": "AKC Health Database, 2024"
681
+ },
682
+
683
+ "Labrador_Retriever": {
684
+ "health_notes": """
685
+ Common breed-specific health considerations (Source: AKC):
686
+ • Hip and elbow dysplasia
687
+ • Exercise-induced collapse
688
+ • Progressive retinal atrophy
689
+ • Bloat
690
+
691
+ Recommended health screenings:
692
+ • Hip and elbow evaluation
693
+ • DNA test for EIC
694
+ • Eye examination
695
+ • Regular weight monitoring
696
+ """,
697
+ "source": "AKC Health Database, 2024"
698
+ },
699
+
700
+ "Lakeland_Terrier": {
701
+ "health_notes": """
702
+ Common breed-specific health considerations (Source: AKC):
703
+ • Legg-Calve-Perthes disease
704
+ • Eye problems
705
+ • Skin allergies
706
+ • Von Willebrand's disease
707
+
708
+ Recommended health screenings:
709
+ • Leg joint evaluation
710
+ • Eye examination
711
+ • Skin allergy testing
712
+ • Blood clotting tests
713
+ """,
714
+ "source": "AKC Health Database, 2024"
715
+ },
716
+
717
+ "Leonberg": {
718
+ "health_notes": """
719
+ Common breed-specific health considerations (Source: AKC):
720
+ • Hip dysplasia
721
+ • Osteosarcoma
722
+ • Bloat
723
+ • Polyneuropathy
724
+
725
+ Recommended health screenings:
726
+ • Hip evaluation
727
+ • Regular cancer screening
728
+ • Bloat prevention monitoring
729
+ • Neurological assessment
730
+ """,
731
+ "source": "AKC Health Database, 2024"
732
+ },
733
+
734
+ "Lhasa": {
735
+ "health_notes": """
736
+ Common breed-specific health considerations (Source: AKC):
737
+ • Kidney dysfunction
738
+ • Progressive retinal atrophy
739
+ • Cherry eye
740
+ • Patellar luxation
741
+
742
+ Recommended health screenings:
743
+ • Kidney function tests
744
+ • Eye examination
745
+ • Patella evaluation
746
+ • Regular dental checks
747
+ """,
748
+ "source": "AKC Health Database, 2024"
749
+ },
750
+
751
+ "Maltese_Dog": {
752
+ "health_notes": """
753
+ Common breed-specific health considerations (Source: AKC):
754
+ • Patellar luxation
755
+ • White shaker syndrome
756
+ • Portosystemic shunt
757
+ • Progressive retinal atrophy
758
+
759
+ Recommended health screenings:
760
+ • Patella evaluation
761
+ • Neurological assessment
762
+ • Liver function tests
763
+ • Eye examination
764
+ """,
765
+ "source": "AKC Health Database, 2024"
766
+ },
767
+
768
+ "Mexican_Hairless": {
769
+ "health_notes": """
770
+ Common breed-specific health considerations (Source: AKC):
771
+ • Dental issues
772
+ • Skin problems
773
+ • Progressive retinal atrophy
774
+ • Patellar luxation
775
+
776
+ Recommended health screenings:
777
+ • Regular dental checks
778
+ • Skin examinations
779
+ • Eye examination
780
+ • Patella evaluation
781
+ """,
782
+ "source": "AKC Health Database, 2024"
783
+ },
784
+
785
+ "Newfoundland": {
786
+ "health_notes": """
787
+ Common breed-specific health considerations (Source: AKC):
788
+ • Hip dysplasia
789
+ • Subvalvular aortic stenosis
790
+ • Cystinuria
791
+ • Bloat
792
+
793
+ Recommended health screenings:
794
+ • Hip evaluation
795
+ • Cardiac examination
796
+ • Urinary testing
797
+ • Regular bloat monitoring
798
+ """,
799
+ "source": "AKC Health Database, 2024"
800
+ },
801
+
802
+ "Norfolk_Terrier": {
803
+ "health_notes": """
804
+ Common breed-specific health considerations (Source: AKC):
805
+ • Patellar luxation
806
+ • Mitral valve disease
807
+ • Hip dysplasia
808
+ • Eye problems
809
+
810
+ Recommended health screenings:
811
+ • Patella evaluation
812
+ • Cardiac examination
813
+ • Hip evaluation
814
+ • Eye examination
815
+ """,
816
+ "source": "AKC Health Database, 2024"
817
+ },
818
+
819
+ "Norwegian_Elkhound": {
820
+ "health_notes": """
821
+ Common breed-specific health considerations (Source: AKC):
822
+ • Hip dysplasia
823
+ • Progressive retinal atrophy
824
+ • Fanconi syndrome
825
+ • Hypothyroidism
826
+
827
+ Recommended health screenings:
828
+ • Hip evaluation
829
+ • Eye examination
830
+ • Kidney function tests
831
+ • Thyroid testing
832
+ """,
833
+ "source": "AKC Health Database, 2024"
834
+ },
835
+
836
+ "Norwich_Terrier": {
837
+ "health_notes": """
838
+ Common breed-specific health considerations (Source: AKC):
839
+ • Upper airway syndrome
840
+ • Hip dysplasia
841
+ • Eye problems
842
+ • Epilepsy
843
+
844
+ Recommended health screenings:
845
+ • Respiratory assessment
846
+ • Hip evaluation
847
+ • Eye examination
848
+ • Neurological check-ups
849
+ """,
850
+ "source": "AKC Health Database, 2024"
851
+ },
852
+
853
+ "Old_English_Sheepdog": {
854
+ "health_notes": """
855
+ Common breed-specific health considerations (Source: AKC):
856
+ • Hip dysplasia
857
+ • Cerebellar ataxia
858
+ • Primary ciliary dyskinesia
859
+ • Deafness
860
+
861
+ Recommended health screenings:
862
+ • Hip evaluation
863
+ • Neurological assessment
864
+ • Respiratory function tests
865
+ • Hearing tests
866
+ """,
867
+ "source": "AKC Health Database, 2024"
868
+ },
869
+
870
+ "Pekinese": {
871
+ "health_notes": """
872
+ Common breed-specific health considerations (Source: AKC):
873
+ • Brachycephalic syndrome
874
+ • Progressive retinal atrophy
875
+ • Heart problems
876
+ • Patellar luxation
877
+
878
+ Recommended health screenings:
879
+ • Respiratory assessment
880
+ • Eye examination
881
+ • Cardiac examination
882
+ • Patella evaluation
883
+ """,
884
+ "source": "AKC Health Database, 2024"
885
+ },
886
+
887
+ "Pembroke": {
888
+ "health_notes": """
889
+ Common breed-specific health considerations (Source: AKC):
890
+ • Hip dysplasia
891
+ • Degenerative myelopathy
892
+ • Von Willebrand's disease
893
+ • Progressive retinal atrophy
894
+
895
+ Recommended health screenings:
896
+ • Hip evaluation
897
+ • DNA test for DM
898
+ • Blood clotting tests
899
+ • Eye examination
900
+ """,
901
+ "source": "AKC Health Database, 2024"
902
+ },
903
+
904
+ "Pomeranian": {
905
+ "health_notes": """
906
+ Common breed-specific health considerations (Source: AKC):
907
+ • Patent ductus arteriosus
908
+ • Collapsed trachea
909
+ • Alopecia X
910
+ • Patellar luxation
911
+
912
+ Recommended health screenings:
913
+ • Cardiac examination
914
+ • Respiratory assessment
915
+ • Regular coat evaluations
916
+ • Patella evaluation
917
+ """,
918
+ "source": "AKC Health Database, 2024"
919
+ },
920
+
921
+ "Rhodesian_Ridgeback": {
922
+ "health_notes": """
923
+ Common breed-specific health considerations (Source: AKC):
924
+ • Hip dysplasia
925
+ • Dermoid sinus
926
+ • Thyroid problems
927
+ • Bloat
928
+
929
+ Recommended health screenings:
930
+ • Hip evaluation
931
+ • Thyroid testing
932
+ • Regular skin checks
933
+ • Bloat prevention monitoring
934
+ """,
935
+ "source": "AKC Health Database, 2024"
936
+ },
937
+
938
+ "Rottweiler": {
939
+ "health_notes": """
940
+ Common breed-specific health considerations (Source: AKC):
941
+ • Hip dysplasia
942
+ • Aortic stenosis
943
+ • Elbow dysplasia
944
+ • Osteosarcoma
945
+
946
+ Recommended health screenings:
947
+ • Hip and elbow evaluation
948
+ • Cardiac examination
949
+ • Regular cancer screening
950
+ • Eye examination
951
+ """,
952
+ "source": "AKC Health Database, 2024"
953
+ },
954
+
955
+ "Saint_Bernard": {
956
+ "health_notes": """
957
+ Common breed-specific health considerations (Source: AKC):
958
+ • Hip dysplasia
959
+ • Elbow dysplasia
960
+ • Bloat
961
+ • Entropion
962
+
963
+ Recommended health screenings:
964
+ • Hip and elbow evaluation
965
+ • Regular bloat monitoring
966
+ • Eye examination
967
+ • Cardiac assessment
968
+ """,
969
+ "source": "AKC Health Database, 2024"
970
+ },
971
+
972
+ "Saluki": {
973
+ "health_notes": """
974
+ Common breed-specific health considerations (Source: AKC):
975
+ • Cardiac issues
976
+ • Hypothyroidism
977
+ • Hemangiosarcoma
978
+ • Eye problems
979
+
980
+ Recommended health screenings:
981
+ • Cardiac examination
982
+ • Thyroid testing
983
+ • Regular cancer screening
984
+ • Eye examination
985
+ """,
986
+ "source": "AKC Health Database, 2024"
987
+ },
988
+
989
+ "Samoyed": {
990
+ "health_notes": """
991
+ Common breed-specific health considerations (Source: AKC):
992
+ • Hip dysplasia
993
+ • Progressive retinal atrophy
994
+ • Diabetes mellitus
995
+ • Heart conditions
996
+
997
+ Recommended health screenings:
998
+ • Hip evaluation
999
+ • Eye examination
1000
+ • Regular blood sugar monitoring
1001
+ • Cardiac examination
1002
+ """,
1003
+ "source": "AKC Health Database, 2024"
1004
+ },
1005
+
1006
+ "Scotch_Terrier": {
1007
+ "health_notes": """
1008
+ Common breed-specific health considerations (Source: AKC):
1009
+ • Von Willebrand's disease
1010
+ • Craniomandibular osteopathy
1011
+ • Cerebellar abiotrophy
1012
+ • Thyroid problems
1013
+
1014
+ Recommended health screenings:
1015
+ • Blood clotting tests
1016
+ • Skull development monitoring
1017
+ • Neurological assessment
1018
+ • Thyroid testing
1019
+ """,
1020
+ "source": "AKC Health Database, 2024"
1021
+ },
1022
+
1023
+ "Scottish_Deerhound": {
1024
+ "health_notes": """
1025
+ Common breed-specific health considerations (Source: AKC):
1026
+ • Cardiomyopathy
1027
+ • Bloat
1028
+ • Cystinuria
1029
+ • Osteosarcoma
1030
+
1031
+ Recommended health screenings:
1032
+ • Cardiac examination
1033
+ • Regular bloat monitoring
1034
+ • Urinary testing
1035
+ • Regular bone cancer screening
1036
+ """,
1037
+ "source": "AKC Health Database, 2024"
1038
+ },
1039
+
1040
+ "Sealyham_Terrier": {
1041
+ "health_notes": """
1042
+ Common breed-specific health considerations (Source: AKC):
1043
+ • Lens luxation
1044
+ • Retinal dysplasia
1045
+ • Hip dysplasia
1046
+ • Thyroid problems
1047
+
1048
+ Recommended health screenings:
1049
+ • Eye examination
1050
+ • Hip evaluation
1051
+ • Thyroid testing
1052
+ • Regular dental checks
1053
+ """,
1054
+ "source": "AKC Health Database, 2024"
1055
+ },
1056
+
1057
+ "Shetland_Sheepdog": {
1058
+ "health_notes": """
1059
+ Common breed-specific health considerations (Source: AKC):
1060
+ • Collie eye anomaly
1061
+ • Hip dysplasia
1062
+ • Von Willebrand's disease
1063
+ • Thyroid problems
1064
+
1065
+ Recommended health screenings:
1066
+ • Eye examination
1067
+ • Hip evaluation
1068
+ • Blood clotting tests
1069
+ • Thyroid testing
1070
+ """,
1071
+ "source": "AKC Health Database, 2024"
1072
+ },
1073
+
1074
+ "Shih-Tzu": {
1075
+ "health_notes": """
1076
+ Common breed-specific health considerations (Source: AKC):
1077
+ • Brachycephalic syndrome
1078
+ • Hip dysplasia
1079
+ • Eye problems
1080
+ • Patellar luxation
1081
+
1082
+ Recommended health screenings:
1083
+ • Respiratory assessment
1084
+ • Hip evaluation
1085
+ • Eye examination
1086
+ • Patella evaluation
1087
+ """,
1088
+ "source": "AKC Health Database, 2024"
1089
+ },
1090
+
1091
+ "Siberian_Husky": {
1092
+ "health_notes": """
1093
+ Common breed-specific health considerations (Source: AKC):
1094
+ • Hip dysplasia
1095
+ • Eye problems
1096
+ • Hypothyroidism
1097
+ • Progressive retinal atrophy
1098
+
1099
+ Recommended health screenings:
1100
+ • Hip evaluation
1101
+ • Eye examination
1102
+ • Thyroid testing
1103
+ • Regular joint assessment
1104
+ """,
1105
+ "source": "AKC Health Database, 2024"
1106
+ },
1107
+
1108
+ "Staffordshire_Bullterrier": {
1109
+ "health_notes": """
1110
+ Common breed-specific health considerations (Source: AKC):
1111
+ • L-2-hydroxyglutaric aciduria
1112
+ • Hip dysplasia
1113
+ • Patellar luxation
1114
+ • Cataracts
1115
+
1116
+ Recommended health screenings:
1117
+ • L2-HGA DNA testing
1118
+ • Hip evaluation
1119
+ • Patella evaluation
1120
+ • Eye examination
1121
+ """,
1122
+ "source": "AKC Health Database, 2024"
1123
+ },
1124
+
1125
+ "Sussex_Spaniel": {
1126
+ "health_notes": """
1127
+ Common breed-specific health considerations (Source: AKC):
1128
+ • Hip dysplasia
1129
+ • Pulmonary stenosis
1130
+ • Intervertebral disk disease
1131
+ • Eye problems
1132
+
1133
+ Recommended health screenings:
1134
+ • Hip evaluation
1135
+ • Cardiac examination
1136
+ • Spine evaluation
1137
+ • Eye examination
1138
+ """,
1139
+ "source": "AKC Health Database, 2024"
1140
+ },
1141
+
1142
+ "Tibetan_Mastiff": {
1143
+ "health_notes": """
1144
+ Common breed-specific health considerations (Source: AKC):
1145
+ • Hip dysplasia
1146
+ • Elbow dysplasia
1147
+ • Hypothyroidism
1148
+ • Autoimmune problems
1149
+
1150
+ Recommended health screenings:
1151
+ • Hip and elbow evaluation
1152
+ • Thyroid testing
1153
+ • Immune system assessment
1154
+ • Regular joint checks
1155
+ """,
1156
+ "source": "AKC Health Database, 2024"
1157
+ },
1158
+
1159
+ "Tibetan_Terrier": {
1160
+ "health_notes": """
1161
+ Common breed-specific health considerations (Source: AKC):
1162
+ • Hip dysplasia
1163
+ • Progressive retinal atrophy
1164
+ • Lens luxation
1165
+ • Neurological problems
1166
+
1167
+ Recommended health screenings:
1168
+ • Hip evaluation
1169
+ • Eye examination
1170
+ • Neurological assessment
1171
+ • Regular joint checks
1172
+ """,
1173
+ "source": "AKC Health Database, 2024"
1174
+ },
1175
+
1176
+ "Walker_Hound": {
1177
+ "health_notes": """
1178
+ Common breed-specific health considerations (Source: AKC):
1179
+ • Hip dysplasia
1180
+ • Eye problems
1181
+ • Ear infections
1182
+ • Thrombopathia
1183
+
1184
+ Recommended health screenings:
1185
+ • Hip evaluation
1186
+ • Eye examination
1187
+ • Regular ear checks
1188
+ • Blood platelet testing
1189
+ """,
1190
+ "source": "AKC Health Database, 2024"
1191
+ },
1192
+
1193
+ "Weimaraner": {
1194
+ "health_notes": """
1195
+ Common breed-specific health considerations (Source: AKC):
1196
+ • Hip dysplasia
1197
+ • Von Willebrand's disease
1198
+ • Gastric torsion
1199
+ • Distichiasis
1200
+
1201
+ Recommended health screenings:
1202
+ • Hip evaluation
1203
+ • Blood clotting tests
1204
+ • Regular bloat monitoring
1205
+ • Eye examination
1206
+ """,
1207
+ "source": "AKC Health Database, 2024"
1208
+ },
1209
+
1210
+ "Welsh_Springer_Spaniel": {
1211
+ "health_notes": """
1212
+ Common breed-specific health considerations (Source: AKC):
1213
+ • Hip dysplasia
1214
+ • Eye problems
1215
+ • Epilepsy
1216
+ • Thyroid problems
1217
+
1218
+ Recommended health screenings:
1219
+ • Hip evaluation
1220
+ • Eye examination
1221
+ • Neurological assessment
1222
+ • Thyroid testing
1223
+ """,
1224
+ "source": "AKC Health Database, 2024"
1225
+ },
1226
+
1227
+ "West_Highland_White_Terrier": {
1228
+ "health_notes": """
1229
+ Common breed-specific health considerations (Source: AKC):
1230
+ • Craniomandibular osteopathy
1231
+ • Pulmonary fibrosis
1232
+ • White shaker syndrome
1233
+ • Skin problems
1234
+
1235
+ Recommended health screenings:
1236
+ • Skull development monitoring
1237
+ • Respiratory assessment
1238
+ • Neurological examination
1239
+ • Regular skin checks
1240
+ """,
1241
+ "source": "AKC Health Database, 2024"
1242
+ },
1243
+
1244
+ "Yorkshire_Terrier": {
1245
+ "health_notes": """
1246
+ Common breed-specific health considerations (Source: AKC):
1247
+ • Patellar luxation
1248
+ • Portosystemic shunt
1249
+ • Progressive retinal atrophy
1250
+ • Collapsed trachea
1251
+
1252
+ Recommended health screenings:
1253
+ • Patella evaluation
1254
+ • Liver function tests
1255
+ • Eye examination
1256
+ • Respiratory assessment
1257
+ """,
1258
+ "source": "AKC Health Database, 2024"
1259
+ },
1260
+
1261
+ "Affenpinscher": {
1262
+ "health_notes": """
1263
+ Common breed-specific health considerations (Source: AKC):
1264
+ • Patent ductus arteriosus
1265
+ • Hip dysplasia
1266
+ • Corneal ulcers
1267
+ • Patellar luxation
1268
+
1269
+ Recommended health screenings:
1270
+ • Cardiac examination
1271
+ • Hip evaluation
1272
+ • Eye examination
1273
+ • Patella evaluation
1274
+ """,
1275
+ "source": "AKC Health Database, 2024"
1276
+ },
1277
+
1278
+ "Basenji": {
1279
+ "health_notes": """
1280
+ Common breed-specific health considerations (Source: AKC):
1281
+ • Fanconi syndrome
1282
+ • Persistent pupillary membranes
1283
+ • Hip dysplasia
1284
+ • Immunoproliferative enteropathy
1285
+
1286
+ Recommended health screenings:
1287
+ • Kidney function tests
1288
+ • Eye examination
1289
+ • Hip evaluation
1290
+ • Regular digestive monitoring
1291
+ """,
1292
+ "source": "AKC Health Database, 2024"
1293
+ },
1294
+
1295
+ "Basset": {
1296
+ "health_notes": """
1297
+ Common breed-specific health considerations (Source: AKC):
1298
+ • Glaucoma
1299
+ • Elbow dysplasia
1300
+ • Thrombopathia
1301
+ • Von Willebrand's disease
1302
+
1303
+ Recommended health screenings:
1304
+ • Eye examination
1305
+ • Elbow evaluation
1306
+ • Blood platelet testing
1307
+ • Blood clotting tests
1308
+ """,
1309
+ "source": "AKC Health Database, 2024"
1310
+ },
1311
+
1312
+ "Beagle": {
1313
+ "health_notes": """
1314
+ Common breed-specific health considerations (Source: AKC):
1315
+ • Hip dysplasia
1316
+ • Eye disorders
1317
+ • Epilepsy
1318
+ • Hypothyroidism
1319
+
1320
+ Recommended health screenings:
1321
+ • Hip evaluation
1322
+ • Eye examination
1323
+ • Neurological assessment
1324
+ • Thyroid testing
1325
+ """,
1326
+ "source": "AKC Health Database, 2024"
1327
+ },
1328
+
1329
+ "Black-and-Tan_Coonhound": {
1330
+ "health_notes": """
1331
+ Common breed-specific health considerations (Source: AKC):
1332
+ • Hip dysplasia
1333
+ • Ear infections
1334
+ • Eye problems
1335
+ • Bloat
1336
+
1337
+ Recommended health screenings:
1338
+ • Hip evaluation
1339
+ • Regular ear checks
1340
+ • Eye examination
1341
+ • Bloat prevention monitoring
1342
+ """,
1343
+ "source": "AKC Health Database, 2024"
1344
+ },
1345
+
1346
+ "Bloodhound": {
1347
+ "health_notes": """
1348
+ Common breed-specific health considerations (Source: AKC):
1349
+ • Hip dysplasia
1350
+ • Elbow dysplasia
1351
+ • Bloat
1352
+ • Entropion
1353
+
1354
+ Recommended health screenings:
1355
+ • Hip and elbow evaluation
1356
+ • Regular bloat monitoring
1357
+ • Eye examination
1358
+ • Regular skin fold checks
1359
+ """,
1360
+ "source": "AKC Health Database, 2024"
1361
+ },
1362
+
1363
+ "Bluetick": {
1364
+ "health_notes": """
1365
+ Common breed-specific health considerations (Source: AKC):
1366
+ • Hip dysplasia
1367
+ • Ear infections
1368
+ • Bloat
1369
+ • Eye problems
1370
+
1371
+ Recommended health screenings:
1372
+ • Hip evaluation
1373
+ • Regular ear checks
1374
+ • Bloat prevention monitoring
1375
+ • Eye examination
1376
+ """,
1377
+ "source": "AKC Health Database, 2024"
1378
+ },
1379
+
1380
+ "Borzoi": {
1381
+ "health_notes": """
1382
+ Common breed-specific health considerations (Source: AKC):
1383
+ • Progressive retinal atrophy
1384
+ • Cardiac issues
1385
+ • Bloat
1386
+ • Hypothyroidism
1387
+
1388
+ Recommended health screenings:
1389
+ • Eye examination
1390
+ • Cardiac examination
1391
+ • Regular bloat monitoring
1392
+ • Thyroid testing
1393
+ """,
1394
+ "source": "AKC Health Database, 2024"
1395
+ },
1396
+
1397
+ "Boxer": {
1398
+ "health_notes": """
1399
+ Common breed-specific health considerations (Source: AKC):
1400
+ • Aortic stenosis
1401
+ • Cardiomyopathy
1402
+ • Hip dysplasia
1403
+ • Thyroid problems
1404
+
1405
+ Recommended health screenings:
1406
+ • Cardiac examination
1407
+ • Hip evaluation
1408
+ • Thyroid testing
1409
+ • Regular cancer screening
1410
+ """,
1411
+ "source": "AKC Health Database, 2024"
1412
+ },
1413
+
1414
+ "Briard": {
1415
+ "health_notes": """
1416
+ Common breed-specific health considerations (Source: AKC):
1417
+ • Hip dysplasia
1418
+ • Progressive retinal atrophy
1419
+ • Congenital stationary night blindness
1420
+ • Gastric torsion
1421
+
1422
+ Recommended health screenings:
1423
+ • Hip evaluation
1424
+ • Eye examination
1425
+ • Night vision testing
1426
+ • Regular bloat monitoring
1427
+ """,
1428
+ "source": "AKC Health Database, 2024"
1429
+ },
1430
+
1431
+ "Bull_Mastiff": {
1432
+ "health_notes": """
1433
+ Common breed-specific health considerations (Source: AKC):
1434
+ • Hip dysplasia
1435
+ • Elbow dysplasia
1436
+ • Cardiac issues
1437
+ • Lymphoma
1438
+
1439
+ Recommended health screenings:
1440
+ • Hip and elbow evaluation
1441
+ • Cardiac examination
1442
+ • Regular cancer screening
1443
+ • Eye examination
1444
+ """,
1445
+ "source": "AKC Health Database, 2024"
1446
+ },
1447
+
1448
+ "Cairn": {
1449
+ "health_notes": """
1450
+ Common breed-specific health considerations (Source: AKC):
1451
+ • Globoid cell leukodystrophy
1452
+ • Craniomandibular osteopathy
1453
+ • Lens luxation
1454
+ • Hypothyroidism
1455
+
1456
+ Recommended health screenings:
1457
+ • DNA testing for GCL
1458
+ • Skull development monitoring
1459
+ • Eye examination
1460
+ • Thyroid testing
1461
+ """,
1462
+ "source": "AKC Health Database, 2024"
1463
+ },
1464
+
1465
+ "Chow": {
1466
+ "health_notes": """
1467
+ Common breed-specific health considerations (Source: AKC):
1468
+ • Hip dysplasia
1469
+ • Elbow dysplasia
1470
+ • Entropion
1471
+ • Hypothyroidism
1472
+
1473
+ Recommended health screenings:
1474
+ • Hip and elbow evaluation
1475
+ • Eye examination
1476
+ • Thyroid testing
1477
+ • Regular skin fold checks
1478
+ """,
1479
+ "source": "AKC Health Database, 2024"
1480
+ },
1481
+
1482
+ "Clumber": {
1483
+ "health_notes": """
1484
+ Common breed-specific health considerations (Source: AKC):
1485
+ • Hip dysplasia
1486
+ • Entropion
1487
+ • Hemophilia B
1488
+ • Pyruvate dehydrogenase phosphatase deficiency
1489
+
1490
+ Recommended health screenings:
1491
+ • Hip evaluation
1492
+ • Eye examination
1493
+ • Blood clotting tests
1494
+ • PDP1 DNA testing
1495
+ """,
1496
+ "source": "AKC Health Database, 2024"
1497
+ },
1498
+
1499
+ "Cocker_Spaniel": {
1500
+ "health_notes": """
1501
+ Common breed-specific health considerations (Source: AKC):
1502
+ • Progressive retinal atrophy
1503
+ • Primary glaucoma
1504
+ • Hip dysplasia
1505
+ • Ear infections
1506
+
1507
+ Recommended health screenings:
1508
+ • Eye examination
1509
+ • Hip evaluation
1510
+ • Regular ear checks
1511
+ • Cardiac assessment
1512
+ """,
1513
+ "source": "AKC Health Database, 2024"
1514
+ },
1515
+
1516
+ "Collie": {
1517
+ "health_notes": """
1518
+ Common breed-specific health considerations (Source: AKC):
1519
+ • Collie eye anomaly
1520
+ • Progressive retinal atrophy
1521
+ • Hip dysplasia
1522
+ • Dermatomyositis
1523
+
1524
+ Recommended health screenings:
1525
+ • Eye examination
1526
+ • Hip evaluation
1527
+ • Regular skin checks
1528
+ • MDR1 genetic testing
1529
+ """,
1530
+ "source": "AKC Health Database, 2024"
1531
+ },
1532
+
1533
+ "Curly-Coated_Retriever": {
1534
+ "health_notes": """
1535
+ Common breed-specific health considerations (Source: AKC):
1536
+ • Hip dysplasia
1537
+ • Elbow dysplasia
1538
+ • Exercise-induced collapse
1539
+ • Glycogen storage disease
1540
+
1541
+ Recommended health screenings:
1542
+ • Hip and elbow evaluation
1543
+ • DNA test for EIC
1544
+ • Eye examination
1545
+ • GSD testing
1546
+ """,
1547
+ "source": "AKC Health Database, 2024"
1548
+ },
1549
+
1550
+ "Dhole": {
1551
+ "health_notes": """
1552
+ Common breed-specific health considerations (Source: AKC):
1553
+ • Hip dysplasia
1554
+ • Eye problems
1555
+ • Dental issues
1556
+ • Parasitic diseases
1557
+
1558
+ Recommended health screenings:
1559
+ • Hip evaluation
1560
+ • Eye examination
1561
+ • Regular dental checks
1562
+ • Parasite screening
1563
+ """,
1564
+ "source": "AKC Health Database, 2024"
1565
+ },
1566
+
1567
+ "Dingo": {
1568
+ "health_notes": """
1569
+ Common breed-specific health considerations (Source: AKC):
1570
+ • Hip dysplasia
1571
+ • Dental problems
1572
+ • Eye conditions
1573
+ • Heat sensitivity
1574
+
1575
+ Recommended health screenings:
1576
+ • Hip evaluation
1577
+ • Regular dental checks
1578
+ • Eye examination
1579
+ • Temperature tolerance monitoring
1580
+ """,
1581
+ "source": "AKC Health Database, 2024"
1582
+ },
1583
+
1584
+ "Flat-Coated_Retriever": {
1585
+ "health_notes": """
1586
+ Common breed-specific health considerations (Source: AKC):
1587
+ • Cancer (especially histiocytic sarcoma)
1588
+ • Hip dysplasia
1589
+ • Progressive retinal atrophy
1590
+ • Glaucoma
1591
+
1592
+ Recommended health screenings:
1593
+ • Regular cancer screening
1594
+ • Hip evaluation
1595
+ • Eye examination
1596
+ • Cardiac assessment
1597
+ """,
1598
+ "source": "AKC Health Database, 2024"
1599
+ },
1600
+
1601
+ "Giant_Schnauzer": {
1602
+ "health_notes": """
1603
+ Common breed-specific health considerations (Source: AKC):
1604
+ • Hip dysplasia
1605
+ • Eye problems
1606
+ • Autoimmune thyroiditis
1607
+ • Bloat
1608
+
1609
+ Recommended health screenings:
1610
+ • Hip evaluation
1611
+ • Eye examination
1612
+ • Thyroid testing
1613
+ • Regular bloat monitoring
1614
+ """,
1615
+ "source": "AKC Health Database, 2024"
1616
+ },
1617
+
1618
+ "Golden_Retriever": {
1619
+ "health_notes": """
1620
+ Common breed-specific health considerations (Source: AKC):
1621
+ • Hip and elbow dysplasia
1622
+ • Cancer (various types)
1623
+ • Subvalvular aortic stenosis
1624
+ • Progressive retinal atrophy
1625
+
1626
+ Recommended health screenings:
1627
+ • Hip and elbow evaluation
1628
+ • Regular cancer screening
1629
+ • Cardiac examination
1630
+ • Eye examination
1631
+ """,
1632
+ "source": "AKC Health Database, 2024"
1633
+ },
1634
+
1635
+ "Groenendael": {
1636
+ "health_notes": """
1637
+ Common breed-specific health considerations (Source: AKC):
1638
+ • Hip dysplasia
1639
+ • Progressive retinal atrophy
1640
+ • Epilepsy
1641
+ • Thyroid problems
1642
+
1643
+ Recommended health screenings:
1644
+ • Hip evaluation
1645
+ • Eye examination
1646
+ • Neurological assessment
1647
+ • Thyroid testing
1648
+ """,
1649
+ "source": "AKC Health Database, 2024"
1650
+ },
1651
+
1652
+ "Keeshond": {
1653
+ "health_notes": """
1654
+ Common breed-specific health considerations (Source: AKC):
1655
+ • Hip dysplasia
1656
+ • Progressive retinal atrophy
1657
+ • Primary hyperparathyroidism
1658
+ • Mitral valve disease
1659
+
1660
+ Recommended health screenings:
1661
+ • Hip evaluation
1662
+ • Eye examination
1663
+ • Parathyroid monitoring
1664
+ • Cardiac examination
1665
+ """,
1666
+ "source": "AKC Health Database, 2024"
1667
+ },
1668
+
1669
+ "Kelpie": {
1670
+ "health_notes": """
1671
+ Common breed-specific health considerations (Source: AKC):
1672
+ • Hip dysplasia
1673
+ • Progressive retinal atrophy
1674
+ • Cerebellar abiotrophy
1675
+ • Collie eye anomaly
1676
+
1677
+ Recommended health screenings:
1678
+ • Hip evaluation
1679
+ • Eye examination
1680
+ • Neurological assessment
1681
+ • DNA testing
1682
+ """,
1683
+ "source": "AKC Health Database, 2024"
1684
+ },
1685
+
1686
+ "Komondor": {
1687
+ "health_notes": """
1688
+ Common breed-specific health considerations (Source: AKC):
1689
+ • Hip dysplasia
1690
+ • Entropion
1691
+ • Bloat
1692
+ • Skin problems
1693
+
1694
+ Recommended health screenings:
1695
+ • Hip evaluation
1696
+ • Eye examination
1697
+ • Regular bloat monitoring
1698
+ • Regular coat and skin checks
1699
+ """,
1700
+ "source": "AKC Health Database, 2024"
1701
+ },
1702
+
1703
+ "Kuvasz": {
1704
+ "health_notes": """
1705
+ Common breed-specific health considerations (Source: AKC):
1706
+ • Hip dysplasia
1707
+ • Osteochondritis dissecans
1708
+ • Von Willebrand's disease
1709
+ • Progressive retinal atrophy
1710
+
1711
+ Recommended health screenings:
1712
+ • Hip evaluation
1713
+ • Joint assessment
1714
+ • Blood clotting tests
1715
+ • Eye examination
1716
+ """,
1717
+ "source": "AKC Health Database, 2024"
1718
+ },
1719
+
1720
+ "Malamute": {
1721
+ "health_notes": """
1722
+ Common breed-specific health considerations (Source: AKC):
1723
+ • Hip dysplasia
1724
+ • Inherited polyneuropathy
1725
+ • Chondrodysplasia
1726
+ • Day blindness
1727
+
1728
+ Recommended health screenings:
1729
+ • Hip evaluation
1730
+ • Neurological assessment
1731
+ • DNA testing
1732
+ • Eye examination
1733
+ """,
1734
+ "source": "AKC Health Database, 2024"
1735
+ },
1736
+
1737
+ "Malinois": {
1738
+ "health_notes": """
1739
+ Common breed-specific health considerations (Source: AKC):
1740
+ • Hip dysplasia
1741
+ • Progressive retinal atrophy
1742
+ • Hemangiosarcoma
1743
+ • Pannus
1744
+
1745
+ Recommended health screenings:
1746
+ • Hip evaluation
1747
+ • Eye examination
1748
+ • Regular cancer screening
1749
+ • Regular eye pressure checks
1750
+ """,
1751
+ "source": "AKC Health Database, 2024"
1752
+ },
1753
+
1754
+ "Miniature_Pinscher": {
1755
+ "health_notes": """
1756
+ Common breed-specific health considerations (Source: AKC):
1757
+ • Patellar luxation
1758
+ • Legg-Calve-Perthes disease
1759
+ • Progressive retinal atrophy
1760
+ • Heart defects
1761
+
1762
+ Recommended health screenings:
1763
+ • Patella evaluation
1764
+ • Hip and leg examination
1765
+ • Eye examination
1766
+ • Cardiac assessment
1767
+ """,
1768
+ "source": "AKC Health Database, 2024"
1769
+ },
1770
+
1771
+ "Miniature_Poodle": {
1772
+ "health_notes": """
1773
+ Common breed-specific health considerations (Source: AKC):
1774
+ • Progressive retinal atrophy
1775
+ • Patellar luxation
1776
+ • Epilepsy
1777
+ • Legg-Calve-Perthes disease
1778
+
1779
+ Recommended health screenings:
1780
+ • Eye examination
1781
+ • Patella evaluation
1782
+ • Neurological assessment
1783
+ • Hip and leg examination
1784
+ """,
1785
+ "source": "AKC Health Database, 2024"
1786
+ },
1787
+
1788
+ "Miniature_Schnauzer": {
1789
+ "health_notes": """
1790
+ Common breed-specific health considerations (Source: AKC):
1791
+ • Myotonia congenita
1792
+ • Urolithiasis
1793
+ • Progressive retinal atrophy
1794
+ • Cataracts
1795
+
1796
+ Recommended health screenings:
1797
+ • DNA testing for myotonia
1798
+ • Regular urinary screening
1799
+ • Eye examination
1800
+ • Cardiac assessment
1801
+ """,
1802
+ "source": "AKC Health Database, 2024"
1803
+ },
1804
+
1805
+ "Otterhound": {
1806
+ "health_notes": """
1807
+ Common breed-specific health considerations (Source: AKC):
1808
+ • Hip dysplasia
1809
+ • Epilepsy
1810
+ • Glaucoma
1811
+ • Bloat
1812
+
1813
+ Recommended health screenings:
1814
+ • Hip evaluation
1815
+ • Neurological assessment
1816
+ • Eye examination
1817
+ • Regular bloat monitoring
1818
+ """,
1819
+ "source": "AKC Health Database, 2024"
1820
+ },
1821
+
1822
+ "Papillon": {
1823
+ "health_notes": """
1824
+ Common breed-specific health considerations (Source: AKC):
1825
+ • Patellar luxation
1826
+ • Progressive retinal atrophy
1827
+ • Von Willebrand's disease
1828
+ • Open fontanel
1829
+
1830
+ Recommended health screenings:
1831
+ • Patella evaluation
1832
+ • Eye examination
1833
+ • Blood clotting tests
1834
+ • Skull development monitoring
1835
+ """,
1836
+ "source": "AKC Health Database, 2024"
1837
+ },
1838
+
1839
+ "Pug": {
1840
+ "health_notes": """
1841
+ Common breed-specific health considerations (Source: AKC):
1842
+ • Brachycephalic syndrome
1843
+ • Pug dog encephalitis
1844
+ • Hip dysplasia
1845
+ • Patellar luxation
1846
+
1847
+ Recommended health screenings:
1848
+ • Respiratory assessment
1849
+ • Neurological evaluation
1850
+ • Hip evaluation
1851
+ • Patella evaluation
1852
+ """,
1853
+ "source": "AKC Health Database, 2024"
1854
+ },
1855
+
1856
+ "Redbone": {
1857
+ "health_notes": """
1858
+ Common breed-specific health considerations (Source: AKC):
1859
+ • Hip dysplasia
1860
+ • Eye problems
1861
+ • Ear infections
1862
+ • Bloat
1863
+
1864
+ Recommended health screenings:
1865
+ • Hip evaluation
1866
+ • Eye examination
1867
+ • Regular ear checks
1868
+ • Bloat prevention monitoring
1869
+ """,
1870
+ "source": "AKC Health Database, 2024"
1871
+ },
1872
+
1873
+ "Schipperke": {
1874
+ "health_notes": """
1875
+ Common breed-specific health considerations (Source: AKC):
1876
+ • Patellar luxation
1877
+ • Progressive retinal atrophy
1878
+ • Thyroid problems
1879
+ • MPS IIIB
1880
+
1881
+ Recommended health screenings:
1882
+ • Patella evaluation
1883
+ • Eye examination
1884
+ • Thyroid testing
1885
+ • DNA testing for MPS IIIB
1886
+ """,
1887
+ "source": "AKC Health Database, 2024"
1888
+ },
1889
+
1890
+ "Silky_Terrier": {
1891
+ "health_notes": """
1892
+ Common breed-specific health considerations (Source: AKC):
1893
+ • Patellar luxation
1894
+ • Progressive retinal atrophy
1895
+ • Legg-Calve-Perthes disease
1896
+ • Diabetes
1897
+
1898
+ Recommended health screenings:
1899
+ • Patella evaluation
1900
+ • Eye examination
1901
+ • Hip and leg examination
1902
+ • Regular blood sugar monitoring
1903
+ """,
1904
+ "source": "AKC Health Database, 2024"
1905
+ },
1906
+
1907
+ "Soft-Coated_Wheaten_Terrier": {
1908
+ "health_notes": """
1909
+ Common breed-specific health considerations (Source: AKC):
1910
+ • Protein-losing nephropathy
1911
+ • Protein-losing enteropathy
1912
+ • Addison's disease
1913
+ • Renal dysplasia
1914
+
1915
+ Recommended health screenings:
1916
+ • Regular kidney function tests
1917
+ • Regular digestive monitoring
1918
+ • Endocrine testing
1919
+ • Genetic testing
1920
+ """,
1921
+ "source": "AKC Health Database, 2024"
1922
+ },
1923
+
1924
+ "Standard_Poodle": {
1925
+ "health_notes": """
1926
+ Common breed-specific health considerations (Source: AKC):
1927
+ • Hip dysplasia
1928
+ • Sebaceous adenitis
1929
+ • Bloat
1930
+ • Addison's disease
1931
+
1932
+ Recommended health screenings:
1933
+ • Hip evaluation
1934
+ • Skin biopsy
1935
+ • Regular bloat monitoring
1936
+ • Endocrine testing
1937
+ """,
1938
+ "source": "AKC Health Database, 2024"
1939
+ },
1940
+
1941
+ "Standard_Schnauzer": {
1942
+ "health_notes": """
1943
+ Common breed-specific health considerations (Source: AKC):
1944
+ • Hip dysplasia
1945
+ • Progressive retinal atrophy
1946
+ • Heart disease
1947
+ • Urinary stones
1948
+
1949
+ Recommended health screenings:
1950
+ • Hip evaluation
1951
+ • Eye examination
1952
+ • Cardiac examination
1953
+ • Regular urinary screening
1954
+ """,
1955
+ "source": "AKC Health Database, 2024"
1956
+ },
1957
+
1958
+ "Toy_Poodle": {
1959
+ "health_notes": """
1960
+ Common breed-specific health considerations (Source: AKC):
1961
+ • Patellar luxation
1962
+ • Progressive retinal atrophy
1963
+ • Dental problems
1964
+ • Legg-Calve-Perthes disease
1965
+
1966
+ Recommended health screenings:
1967
+ • Patella evaluation
1968
+ • Eye examination
1969
+ • Regular dental checks
1970
+ • Hip and leg examination
1971
+ """,
1972
+ "source": "AKC Health Database, 2024"
1973
+ },
1974
+
1975
+ "Toy_Terrier": {
1976
+ "health_notes": """
1977
+ Common breed-specific health considerations (Source: AKC):
1978
+ • Patellar luxation
1979
+ • Primary lens luxation
1980
+ • Legg-Calve-Perthes disease
1981
+ • Dental problems
1982
+
1983
+ Recommended health screenings:
1984
+ • Patella evaluation
1985
+ • Eye examination
1986
+ • Hip and leg examination
1987
+ • Regular dental checks
1988
+ """,
1989
+ "source": "AKC Health Database, 2024"
1990
+ },
1991
+
1992
+ "Vizsla": {
1993
+ "health_notes": """
1994
+ Common breed-specific health considerations (Source: AKC):
1995
+ • Hip dysplasia
1996
+ • Epilepsy
1997
+ • Hypothyroidism
1998
+ • Progressive retinal atrophy
1999
+
2000
+ Recommended health screenings:
2001
+ • Hip evaluation
2002
+ • Neurological assessment
2003
+ • Thyroid testing
2004
+ • Eye examination
2005
+ """,
2006
+ "source": "AKC Health Database, 2024"
2007
+ },
2008
+
2009
+ "Whippet": {
2010
+ "health_notes": """
2011
+ Common breed-specific health considerations (Source: AKC):
2012
+ • Cardiac problems
2013
+ • Eye defects
2014
+ • Deafness
2015
+ • Von Willebrand's disease
2016
+
2017
+ Recommended health screenings:
2018
+ • Cardiac examination
2019
+ • Eye examination
2020
+ • Hearing tests
2021
+ • Blood clotting tests
2022
+ """,
2023
+ "source": "AKC Health Database, 2024"
2024
+ },
2025
+
2026
+ "Wire-Haired_Fox_Terrier": {
2027
+ "health_notes": """
2028
+ Common breed-specific health considerations (Source: AKC):
2029
+ • Patellar luxation
2030
+ • Legg-Calve-Perthes disease
2031
+ • Cataracts
2032
+ • Primary lens luxation
2033
+
2034
+ Recommended health screenings:
2035
+ • Patella evaluation
2036
+ • Hip and leg examination
2037
+ • Eye examination
2038
+ • Regular dental checks
2039
+ """,
2040
+ "source": "AKC Health Database, 2024"
2041
+ }
2042
+ }
2043
+
2044
+
2045
+ default_health_note = """
2046
+ Common breed health information is being compiled.
2047
+ Please consult with veterinarians for specific health advice.
2048
+
2049
+ General recommendations:
2050
+ • Regular veterinary check-ups
2051
+ • Appropriate vaccination schedule
2052
+ • Regular exercise and dental care
2053
+ • Proper nutrition and weight management
2054
+ """
data_manager.py ADDED
@@ -0,0 +1,777 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import sqlite3
3
+ from dataclasses import dataclass
4
+ from typing import List, Dict, Optional
5
+ from decimal import Decimal
6
+ from breed_health_info import breed_health_info, default_health_note
7
+ import numpy as np
8
+ import random
9
+
10
+
11
+ def create_table():
12
+ conn = sqlite3.connect('animal_detector.db')
13
+ cursor = conn.cursor()
14
+
15
+ cursor.execute('''
16
+ CREATE TABLE IF NOT EXISTS AnimalCatalog (
17
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
18
+ Species TEXT NOT NULL,
19
+ Breed TEXT NOT NULL,
20
+ Size_Category TEXT,
21
+ Typical_Lifespan TEXT,
22
+ Temperament TEXT,
23
+ Care_Level TEXT,
24
+ Good_With_Children BOOLEAN,
25
+ Exercise_Needs TEXT,
26
+ Grooming_Needs TEXT,
27
+ Brief_Description TEXT
28
+ )
29
+ ''')
30
+
31
+ conn.commit()
32
+ cursor.close()
33
+ conn.close()
34
+
35
+ # 創建表
36
+ create_table()
37
+
38
+ def insert_dog_data():
39
+ conn = sqlite3.connect('animal_detector.db')
40
+ cursor = conn.cursor()
41
+
42
+ dog_data = [
43
+ ('Dog', 'Afghan_Hound', 'Large', '12-18 years', 'Independent, dignified, aloof', 'High', True, 'High', 'High', 'Known for their long, silky coat and regal appearance, Afghan Hounds are ancient sighthounds with a unique, elegant presence.'),
44
+ ('Dog', 'African_Hunting_Dog', 'Medium', '10-12 years', 'Social, intelligent, energetic', 'Very High', False, 'Very High', 'Low', 'Also called African Wild Dogs, these are not domestic dogs and are endangered in their native habitats.'),
45
+ ('Dog', 'Airedale', 'Large', '10-12 years', 'Friendly, clever, courageous', 'High', True, 'High', 'High', 'Known as the "King of Terriers," Airedales are the largest of the terrier breeds and very versatile. Originally from Aire Valley of Yorkshire, they served in police and military roles while maintaining their hunting abilities.'),
46
+ ('Dog', 'American_Staffordshire_Terrier', 'Medium', '12-16 years', 'Confident, good-natured, courageous', 'Moderate', True, 'High', 'Low', 'Often confused with Pit Bulls, Am Staffs are strong, muscular dogs with a gentle and loving nature.'),
47
+ ('Dog', 'Appenzeller', 'Medium', '12-15 years', 'Reliable, fearless, lively', 'High', True, 'High', 'Moderate', 'Swiss mountain dogs known for their agility and enthusiasm, Appenzellers make excellent working and family dogs. Traditional cattle herders from the Swiss Alps, they combine working intelligence with devoted guardianship.'),
48
+ ('Dog', 'Australian_Terrier', 'Small', '12-15 years', 'Courageous, spirited, alert', 'Moderate', True, 'Moderate', 'Moderate', 'Small, sturdy terriers originally bred to control rodents, known for their confident personality. First breed developed in Australia, combining the tenacity of old terrier breeds with adaptability to harsh conditions.'),
49
+ ('Dog', 'Bedlington_Terrier', 'Medium', '11-16 years', 'Mild, gentle, lively', 'High', True, 'Moderate', 'High', 'Known for their lamb-like appearance, Bedlington Terriers are energetic and good with families. Despite their gentle look, they were originally miners\' dogs bred for hunting vermin and remain surprisingly fast and athletic.'),
50
+ ('Dog', 'Bernese_Mountain_Dog', 'Large', '6-8 years', 'Good-natured, calm, strong', 'High', True, 'Moderate', 'High', 'Large, tri-colored Swiss working dogs known for their gentle nature and striking appearance. Despite their short lifespan, they are excellent family companions and draft dogs. Often called "Berners", they are patient with children but prone to heat sensitivity due to their thick coat.'),
51
+ ('Dog', 'Blenheim_Spaniel', 'Small', '12-14 years', 'Affectionate, gentle, lively', 'Moderate', True, 'Moderate', 'High', 'A color variety of the Cavalier King Charles Spaniel, known for their red and white coat and friendly nature.'),
52
+ ('Dog', 'Border_Collie', 'Medium', '12-15 years', 'Intelligent, energetic, alert', 'High', True, 'Very High', 'Moderate', 'Often considered the most intelligent dog breed, Border Collies are tireless workers with intense herding instincts. Known for their "eye" - a distinctive herding gaze, they excel in dog sports and need constant mental stimulation to prevent boredom.'),
53
+ ('Dog', 'Border_Terrier', 'Small', '12-15 years', 'Affectionate, intelligent, even-tempered', 'Moderate', True, 'High', 'Low', 'Small but tough terriers with an otter-like head, known for their friendly and adaptable nature.'),
54
+ ('Dog', 'Boston_Bull', 'Small', '11-13 years', 'Friendly, lively, intelligent', 'Moderate', True, 'Moderate', 'Low', 'Also known as Boston Terriers, these "American Gentlemen" are friendly and adaptable. First bred in Boston as fighting dogs, they evolved into beloved companions known for their tuxedo-like coat pattern and gentle disposition.'),
55
+ ('Dog', 'Bouvier_Des_Flandres', 'Large', '10-12 years', 'Gentle, loyal, rational', 'High', True, 'High', 'High', 'Large, powerful herding dogs with a tousled coat, known for their versatility and even temperament. Originally bred as cattle drivers in Flanders, they excel in various roles from farm work to family protection.'),
56
+ ('Dog', 'Brabancon_Griffon', 'Small', '12-15 years', 'Self-important, sensitive, affectionate', 'Moderate', False, 'Moderate', 'Low', 'Also known as the Brussels Griffon, these small dogs have a distinctive beard and mustache, giving them an almost human-like expression.'),
57
+ ('Dog', 'Brittany_Spaniel', 'Medium', '12-14 years', 'Bright, fun-loving, upbeat', 'High', True, 'High', 'Moderate', 'Versatile hunting dogs and active companions, Brittanys are known for their energy and intelligence. Originally from France, these agile bird dogs excel in both hunting and family life with their eager and athletic nature.'),
58
+ ('Dog', 'Cardigan', 'Small', '12-15 years', 'Affectionate, loyal, intelligent', 'Moderate', True, 'Moderate', 'Moderate', 'Distinguished from Pembroke Welsh Corgis by their long tail, Cardigans are intelligent herding dogs with a fox-like appearance.'),
59
+ ('Dog', 'Chesapeake_Bay_Retriever', 'Large', '10-13 years', 'Bright, sensitive, affectionate', 'High', True, 'High', 'Moderate', 'Known for their waterproof coat, Chessies are strong swimmers and excellent retrievers. Developed in the American Chesapeake Bay region, they are famous for their ability to work in icy waters and their distinctive wavy coat.'),
60
+ ('Dog', 'Chihuahua', 'Small', '12-20 years', 'Charming, graceful, sassy', 'Moderate', False, 'Low', 'Low', 'One of the smallest dog breeds, known for their big personalities and loyalty to their owners. Named after Mexico\'s largest state, they are ancient companions with terrier-like attitudes and remarkably long lifespans for dogs.'),
61
+ ('Dog', 'Dandie_Dinmont', 'Small', '12-15 years', 'Independent, intelligent, dignified', 'Moderate', True, 'Moderate', 'Moderate', 'Recognizable by their long body and distinctive topknot of hair on their head. Named after a character in Sir Walter Scott novel, these unique terriers combine determination with dignity, making them distinctive companions.'),
62
+ ('Dog', 'Doberman', 'Large', '10-12 years', 'Loyal, fearless, alert', 'High', True, 'High', 'Low', 'Sleek, athletic dogs known for their intelligence and loyalty, often used as guard dogs. Highly trainable and protective, they excel in both working roles and as family guardians.'),
63
+ ('Dog', 'English_Foxhound', 'Medium', '10-13 years', 'Friendly, active, gentle', 'High', True, 'Very High', 'Low', 'Athletic, pack-oriented hounds originally bred for fox hunting in England. Known for their stamina, melodious voice, and strong hunting instincts.'),
64
+ ('Dog', 'English_Setter', 'Large', '10-12 years', 'Gentle, friendly, placid', 'High', True, 'High', 'High', 'Known for their speckled coat or "belton" markings, English Setters are elegant bird dogs and affectionate companions.'),
65
+ ('Dog', 'English_Springer', 'Medium', '12-14 years', 'Friendly, playful, obedient', 'High', True, 'High', 'High', 'Energetic and eager to please, Springers are excellent hunting dogs and loving family pets. Their name comes from their hunting style of "springing" at game birds, combining strong work ethics with a merry, affectionate family nature.'),
66
+ ('Dog', 'EntleBucher', 'Medium', '11-13 years', 'Loyal, enthusiastic, intelligent', 'High', True, 'High', 'Low', 'The smallest of the Swiss Mountain Dogs, known for their agility and herding abilities. Originally from the Swiss valley of Entlebuch, they combine the strength of mountain dogs with remarkable agility and quick thinking.'),
67
+ ('Dog', 'Eskimo_Dog', 'Large', '10-15 years', 'Alert, loyal, intelligent', 'High', True, 'High', 'High', 'Also known as the Canadian Eskimo Dog, these are strong, resilient working dogs adapted to Arctic conditions. Ancient breed used by Inuit people for hunting and transportation, known for their power and endurance.'),
68
+ ('Dog', 'French_Bulldog', 'Small', '10-12 years', 'Playful, adaptable, smart', 'Moderate', True, 'Low', 'Low', 'French Bulldogs are small, muscular dogs with a smooth coat, short face, and bat-like ears. They are affectionate, playful, and well-suited for family living.'),
69
+ ('Dog', 'German_Shepherd', 'Large', '10-13 years', 'Confident, courageous, smart', 'High', True, 'High', 'Moderate', 'Versatile working dogs, German Shepherds excel in various roles from police work to family protection.'),
70
+ ('Dog', 'German_Short-Haired_Pointer', 'Large', '10-12 years', 'Friendly, intelligent, willing to please', 'High', True, 'Very High', 'Moderate', 'Versatile hunting dogs known for their pointer stance, these dogs excel in both water and land retrieving.'),
71
+ ('Dog', 'Gordon_Setter', 'Large', '10-12 years', 'Confident, fearless, alert', 'High', True, 'High', 'High', 'The largest of the setter breeds, Gordon Setters are known for their black and tan coloring and loyal nature. Developed in Scotland, these noble bird dogs combine strong hunting abilities with devoted family loyalty.'),
72
+ ('Dog', 'Great_Dane', 'Giant', '7-10 years', 'Friendly, patient, dependable', 'High', True, 'Moderate', 'Low', 'One of the largest dog breeds, Great Danes are known as gentle giants with a friendly disposition. Originally bred for hunting large game, these noble giants now excel as loving family companions despite their imposing size.'),
73
+ ('Dog', 'Great_Pyrenees', 'Large', '10-12 years', 'Patient, calm, gentle', 'High', True, 'Moderate', 'High', 'Large, powerful dogs originally bred to guard livestock, known for their gentle and protective nature. These ancient guardians of the Pyrenees mountains combine strength and nobility with a deep devotion to family and flock.'),
74
+ ('Dog', 'Greater_Swiss_Mountain_dog', 'Large', '8-11 years', 'Faithful, alert, vigilant', 'Moderate', True, 'Moderate', 'Low', 'Large, strong working dogs with a tricolor coat, Swissies are gentle giants with a calm temperament.'),
75
+ ('Dog', 'Ibizan_Hound', 'Medium', '12-14 years', 'Even-tempered, loyal, independent', 'Moderate', True, 'High', 'Low', 'Sleek, athletic sighthounds known for their large, erect ears and red and white coats. Ancient breed from Balearic Islands, they can jump remarkable heights and were bred to hunt rabbits in difficult terrain.'),
76
+ ('Dog', 'Irish_Setter', 'Large', '11-15 years', 'Outgoing, sweet-tempered, active', 'High', True, 'High', 'High', 'Recognizable by their rich red coat, Irish Setters are energetic and playful dogs that love family life.'),
77
+ ('Dog', 'Irish_Terrier', 'Medium', '12-16 years', 'Bold, daring, intelligent', 'Moderate', True, 'High', 'Moderate', 'Known as the Daredevil of dogdom, Irish Terriers are courageous and loyal with a distinctive red coat. One of the oldest terrier breeds, they earned fame for their bravery as messenger dogs in World War I.'),
78
+ ('Dog', 'Irish_Water_Spaniel', 'Large', '10-12 years', 'Playful, brave, intelligent', 'High', True, 'High', 'High', 'Largest of the spaniels, known for their curly, liver-colored coat and rat-like tail. These distinctive water retrievers combine the agility of a spaniel with the endurance of a retriever, featuring a water-repellent double coat.'),
79
+ ('Dog', 'Irish_Wolfhound', 'Giant', '6-8 years', 'Gentle, patient, dignified', 'High', True, 'Moderate', 'Moderate', 'The tallest of all dog breeds, Irish Wolfhounds are gentle giants known for their calm and friendly nature. Ancient warriors of Ireland, they once hunted wolves but now serve as peaceful family companions.'),
80
+ ('Dog', 'Italian_Greyhound', 'Small', '12-15 years', 'Sensitive, alert, playful', 'Moderate', False, 'Moderate', 'Low', 'Miniature sighthounds known for their elegant appearance and affectionate nature, Italian Greyhounds make excellent companion dogs.'),
81
+ ('Dog', 'Japanese_Spaniel', 'Small', '10-12 years', 'Charming, noble, affectionate', 'Moderate', False, 'Low', 'High', 'Also known as the Japanese Chin, these small companion dogs have a distinctive flat face and were once favorites of Japanese nobility.'),
82
+ ('Dog', 'Kerry_Blue_Terrier', 'Medium', '12-15 years', 'Alert, adaptable, people-oriented', 'High', True, 'High', 'High', 'Medium-sized terriers with a distinctive blue coat, known for their versatility and intelligence. Originally from County Kerry, Ireland, they were all-purpose farm dogs that evolved into capable working and companion animals.'),
83
+ ('Dog', 'Labrador_Retriever', 'Large', '10-12 years', 'Friendly, outgoing, even-tempered', 'Moderate', True, 'High', 'Moderate', 'One of the most popular dog breeds, known for their friendly nature and excellent retrieving skills. Originally from Newfoundland, these versatile dogs excel as family companions, service dogs, and working retrievers.'),
84
+ ('Dog', 'Lakeland_Terrier', 'Small', '12-16 years', 'Bold, friendly, confident', 'Moderate', True, 'High', 'High', 'Named after the Lake District in England, these terriers are sturdy and bold with a wiry coat. Developed to protect sheep from foxes, they remain confident and fearless while being adaptable family companions.'),
85
+ ('Dog', 'Leonberg', 'Giant', '7-9 years', 'Gentle, friendly, intelligent', 'High', True, 'Moderate', 'High', 'Large, muscular dogs with a lion-like mane, known for their gentle nature and water rescue abilities. Created in the German town of Leonberg, these gentle giants combine strength with remarkable patience and grace.'),
86
+ ('Dog', 'Lhasa', 'Small', '12-15 years', 'Confident, smart, comical', 'High', False, 'Low', 'High', 'Lhasa Apsos are small but sturdy dogs with a long, flowing coat. They were originally bred as indoor sentinel dogs in Buddhist monasteries.'),
87
+ ('Dog', 'Maltese_Dog', 'Small', '12-15 years', 'Gentle, playful, charming', 'High', False, 'Low', 'High', 'Small, elegant dogs with long, silky white coats, known for their sweet and affectionate nature. Ancient breed of Mediterranean origin, they were cherished by nobles for centuries and remain adaptable, gentle companions.'),
88
+ ('Dog', 'Mexican_Hairless', 'Varies', '12-15 years', 'Loyal, alert, cheerful', 'Moderate', True, 'Moderate', 'Low', 'Also known as the Xoloitzcuintli, these dogs come in three sizes and can be either hairless or coated, known for their ancient history in Mexico.'),
89
+ ('Dog', 'Newfoundland', 'Giant', '8-10 years', 'Sweet, patient, devoted', 'High', True, 'Moderate', 'High', 'Large, strong dogs known for their water rescue abilities and gentle nature, especially with children. These powerful swimmers have a natural lifesaving instinct and are famous for their calm, noble temperament.'),
90
+ ('Dog', 'Norfolk_Terrier', 'Small', '12-15 years', 'Fearless, spirited, companionable', 'Moderate', True, 'Moderate', 'Moderate', 'Small, sturdy terriers with a wiry coat, known for their playful and affectionate nature.'),
91
+ ('Dog', 'Norwegian_Elkhound', 'Medium', '12-15 years', 'Bold, playful, loyal', 'High', True, 'High', 'High', 'Ancient Nordic breed known for their silver-gray coat and curled tail, originally used for hunting moose and other large game.'),
92
+ ('Dog', 'Norwich_Terrier', 'Small', '12-15 years', 'Fearless, loyal, affectionate', 'Moderate', True, 'Moderate', 'Moderate', 'One of the smallest terriers, Norwich Terriers are hardy, fearless, and affectionate companions.'),
93
+ ('Dog', 'Old_English_Sheepdog', 'Large', '10-12 years', 'Adaptable, gentle, intelligent', 'High', True, 'Moderate', 'High', 'Recognizable by their shaggy coat, Old English Sheepdogs are adaptable and good-natured. Once droving dogs of western England, they combine herding ability with a playful, protective nature toward their families.'),
94
+ ('Dog', 'Pekinese', 'Small', '12-14 years', 'Affectionate, loyal, regal in manner', 'Moderate', False, 'Low', 'High', 'Also spelled Pekingese, these small dogs with flat faces and long coats were once sacred to Chinese royalty.'),
95
+ ('Dog', 'Pembroke', 'Small', '12-15 years', 'Affectionate, intelligent, outgoing', 'Moderate', True, 'Moderate', 'Moderate', 'Known for their short legs and long bodies, Pembroke Welsh Corgis are herding dogs favored by the British royal family.'),
96
+ ('Dog', 'Pomeranian', 'Small', '12-16 years', 'Lively, bold, inquisitive', 'Moderate', False, 'Low', 'High', 'Small, fluffy dogs with fox-like faces, known for their vivacious personalities and luxurious coats. Once larger sled dogs, these bred-down companions retain their bold spirit and were favored by royalty including Queen Victoria.'),
97
+ ('Dog', 'Rhodesian_Ridgeback', 'Large', '10-12 years', 'Dignified, intelligent, strong-willed', 'Moderate', True, 'High', 'Low', 'Large, muscular dogs known for the ridge of hair along their backs, originally bred to hunt lions in Africa.'),
98
+ ('Dog', 'Rottweiler', 'Large', '8-10 years', 'Loyal, loving, confident guardian', 'High', True, 'High', 'Low', 'Powerful and protective, Rottweilers are excellent guard dogs but also loving family companions when well-trained.'),
99
+ ('Dog', 'Saint_Bernard', 'Giant', '8-10 years', 'Gentle, patient, friendly', 'High', True, 'Moderate', 'High', 'Known for their massive size and gentle nature, Saint Bernards were originally bred for rescue work in the Swiss Alps.'),
100
+ ('Dog', 'Saluki', 'Large', '12-14 years', 'Gentle, dignified, independent-minded', 'High', True, 'High', 'Low', 'Ancient sighthounds known for their grace and speed, Salukis have a distinctive feathered coat and ears.'),
101
+ ('Dog', 'Samoyed', 'Medium', '12-14 years', 'Friendly, gentle, adaptable', 'High', True, 'High', 'High', 'Beautiful white Arctic dogs known for their "smiling" expression and thick, fluffy coat. Originally bred for sledding and herding reindeer, they combine working dog capability with a warm, family-friendly nature.'),
102
+ ('Dog', 'Scotch_Terrier', 'Small', '11-13 years', 'Independent, confident, spirited', 'Moderate', True, 'Moderate', 'High', 'Also known as the Scottish Terrier, these distinctive dogs with beards and eyebrows are known for their dignified, almost human-like personality.'),
103
+ ('Dog', 'Scottish_Deerhound', 'Large', '8-11 years', 'Gentle, dignified, polite', 'High', True, 'High', 'Moderate', 'Large, wiry-coated sighthounds resembling Greyhounds, known for their gentle nature and hunting ability.'),
104
+ ('Dog', 'Sealyham_Terrier', 'Small', '12-14 years', 'Alert, outgoing, calm', 'Moderate', True, 'Moderate', 'High', 'Originally bred for hunting, Sealyhams are now rare but make charming and sturdy companions. Developed in Wales to hunt badgers and otters, they combine terrier tenacity with a surprisingly calm demeanor.'),
105
+ ('Dog', 'Shetland_Sheepdog', 'Small', '12-14 years', 'Playful, energetic, intelligent', 'High', True, 'High', 'High', 'Small herding dogs resembling miniature Collies, known for their intelligence and agility. Originally from the Shetland Islands, these "Shelties" excel in obedience, herding, and agility competitions while being devoted family companions.'),
106
+ ('Dog', 'Shih-Tzu', 'Small', '10-16 years', 'Affectionate, playful, outgoing', 'High', True, 'Low', 'High', 'Small, affectionate companion dogs known for their long, silky coat and sweet personality. Originally bred for Chinese royalty, they are excellent lap dogs and adapt well to both city and suburban life.'),
107
+ ('Dog', 'Siberian_Husky', 'Medium', '12-14 years', 'Outgoing, mischievous, loyal', 'High', True, 'Very High', 'Moderate', 'Beautiful sled dogs known for their striking blue eyes, thick coats, and wolf-like appearance. Originally bred by the Chukchi people of northeastern Asia, they combine endurance with a friendly, adventurous spirit.'),
108
+ ('Dog', 'Staffordshire_Bullterrier', 'Medium', '12-14 years', 'Courageous, intelligent, loyal', 'Moderate', True, 'High', 'Low', 'Strong, muscular terriers known for their courage and affectionate nature, especially with children.'),
109
+ ('Dog', 'Sussex_Spaniel', 'Medium', '11-13 years', 'Calm, friendly, merry', 'Moderate', True, 'Moderate', 'Moderate', 'Rare breed of spaniel known for their golden-liver coat and low-set body, originally bred for hunting.'),
110
+ ('Dog', 'Tibetan_Mastiff', 'Large', '10-12 years', 'Independent, reserved, intelligent', 'High', False, 'Moderate', 'High', 'Ancient guardian breed known for their massive size and thick coat, Tibetan Mastiffs are independent and protective.'),
111
+ ('Dog', 'Tibetan_Terrier', 'Medium', '12-15 years', 'Affectionate, sensitive, clever', 'High', True, 'Moderate', 'High', 'Not actually terriers, these dogs were bred in Tibet and are known for their profuse, long coat.'),
112
+ ('Dog', 'Walker_Hound', 'Large', '12-13 years', 'Smart, brave, friendly', 'Moderate', True, 'High', 'Low', 'Also known as the Treeing Walker Coonhound, these dogs are excellent hunters with a distinctive bark. Developed in Kentucky from Virginia Hounds, they are renowned for their speed, endurance, and melodious voice.'),
113
+ ('Dog', 'Weimaraner', 'Large', '10-13 years', 'Friendly, fearless, obedient', 'High', True, 'High', 'Low', 'Known as the "Gray Ghost," Weimaraners are athletic and intelligent dogs with a distinctive silver-gray coat.'),
114
+ ('Dog', 'Welsh_Springer_Spaniel', 'Medium', '12-15 years', 'Active, loyal, affectionate', 'High', True, 'High', 'Moderate', 'Similar to English Springers but with a distinctive red and white coat, Welsh Springers are devoted and energetic.'),
115
+ ('Dog', 'West_Highland_White_Terrier', 'Small', '12-16 years', 'Friendly, hardy, confident', 'Moderate', True, 'Moderate', 'High', 'Commonly known as "Westies," these white terriers are friendly and sturdy with a bright personality.'),
116
+ ('Dog', 'Yorkshire_Terrier', 'Small', '13-16 years', 'Affectionate, sprightly, tomboyish', 'High', False, 'Moderate', 'High', 'Popular toy breed known for their long silky coat and feisty personality. Despite their small size, they maintain a brave terrier spirit and were originally bred as ratters in Yorkshire mills.'),
117
+ ('Dog', 'Affenpinscher', 'Small', '12-15 years', 'Confident, amusing, stubborn', 'Moderate', False, 'Moderate', 'Moderate', 'Small terrier-like toys known as "monkey dogs" due to their distinctive facial appearance.'),
118
+ ('Dog', 'Basenji', 'Small', '12-16 years', 'Independent, smart, poised', 'Moderate', False, 'High', 'Low', 'Ancient African breed known for their inability to bark, instead making a unique yodel-like sound. Called "the barkless dog," they are intelligent hunters with cat-like cleanliness and independent nature.'),
119
+ ('Dog', 'Basset', 'Medium', '10-12 years', 'Patient, low-key, charming', 'Moderate', True, 'Low', 'Moderate', 'Short-legged, long-bodied hounds known for their excellent sense of smell and gentle dispositions. Second only to Bloodhounds in scenting ability, these French-origin dogs combine persistence with a sweet, patient nature.'),
120
+ ('Dog', 'Beagle', 'Small', '12-15 years', 'Merry, friendly, curious', 'Moderate', True, 'High', 'Low', 'Small hound dogs known for their excellent sense of smell and friendly, outgoing personalities. Popular family pets and skilled scent hunters, famous for their melodious bay and pack mentality.'),
121
+ ('Dog', 'Black-and-Tan_Coonhound', 'Large', '10-12 years', 'Even-tempered, easygoing, friendly', 'Moderate', True, 'High', 'Low', 'Large, powerful scent hounds known for their distinctive black and tan coloration and melodious bay.'),
122
+ ('Dog', 'Bloodhound', 'Large', '10-12 years', 'Gentle, patient, stubborn', 'High', True, 'Moderate', 'Moderate', 'Known for their exceptional sense of smell, Bloodhounds are large, gentle dogs often used in tracking.'),
123
+ ('Dog', 'Bluetick', 'Large', '11-12 years', 'Friendly, intelligent, active', 'Moderate', True, 'High', 'Low', 'Known for their mottled blue coat, Bluetick Coonhounds are skilled hunting dogs with a keen sense of smell and a melodious howl.'),
124
+ ('Dog', 'Borzoi', 'Large', '10-12 years', 'Quiet, gentle, athletic', 'High', True, 'Moderate', 'High', 'Also known as Russian Wolfhounds, Borzois are elegant sighthounds known for their silky coat and graceful demeanor.'),
125
+ ('Dog', 'Boxer', 'Large', '10-12 years', 'Fun-loving, bright, active', 'Moderate', True, 'High', 'Low', 'Playful and energetic, Boxers are known for their patient and protective nature with children. Originally developed in Germany as working dogs, they combine strength with a uniquely playful and clownish personality.'),
126
+ ('Dog', 'Briard', 'Large', '10-12 years', 'Confident, smart, loyal', 'High', True, 'High', 'High', 'Large French herding dogs with a distinctive long, wavy coat, Briards are loyal and protective. Known as "hearts wrapped in fur," they served as WWI sentries and now excel as both working dogs and devoted family guardians.'),
127
+ ('Dog', 'Bull_mastiff', 'Large', '8-10 years', 'Affectionate, loyal, quiet', 'Moderate', True, 'Moderate', 'Low', 'Large, powerful dogs originally bred to guard estates, Bullmastiffs are gentle giants with a calm demeanor.'),
128
+ ('Dog', 'Cairn', 'Small', '13-15 years', 'Alert, cheerful, busy', 'Moderate', True, 'Moderate', 'Moderate', 'Small, rugged terriers known for their shaggy coat and lively personality. Originally bred to hunt in the Scottish Highlands, these hardy dogs are intelligent and make excellent watchdogs despite their small size.'),
129
+ ('Dog', 'Chow', 'Medium', '8-12 years', 'Aloof, loyal, quiet', 'High', False, 'Low', 'High', 'Ancient Chinese breed known for their lion-like mane and blue-black tongues. Independent and dignified, they make excellent watchdogs but require early socialization.'),
130
+ ('Dog', 'Clumber', 'Large', '10-12 years', 'Gentle, loyal, thoughtful', 'Moderate', True, 'Moderate', 'High', 'The largest of the spaniels, Clumbers are known for their distinctive white coat and calm demeanor. Developed in France and England, these dignified hunters combine power with a methodical hunting style and gentle nature.'),
131
+ ('Dog', 'Cocker_Spaniel', 'Small', '10-14 years', 'Gentle, smart, happy', 'High', True, 'Moderate', 'High', 'Known for their long, silky ears and expressive eyes, Cockers are popular family dogs with a merry disposition.'),
132
+ ('Dog', 'Collie', 'Large', '10-14 years', 'Devoted, graceful, proud', 'High', True, 'High', 'High', 'Made famous by "Lassie," Collies are intelligent herding dogs known for their loyalty and grace. Their remarkable intuition and gentle nature make them exceptional family guardians, especially with children.'),
133
+ ('Dog', 'Curly-Coated_Retriever', 'Large', '10-12 years', 'Confident, independent, intelligent', 'Moderate', True, 'High', 'Low', 'Sporting dogs with a distinctive curly coat, known for their excellent swimming and retrieving abilities.'),
134
+ ('Dog', 'Dhole', 'Medium', '10-13 years', 'Social, intelligent, athletic', 'High', False, 'High', 'Low', 'Also known as the Asiatic wild dog, Dholes are not typically kept as pets but are important in Asian ecosystems.'),
135
+ ('Dog', 'Dingo', 'Medium', '10-13 years', 'Independent, intelligent, alert', 'High', False, 'High', 'Low', 'Native wild dogs of Australia, dingoes are not typically kept as pets and are important to the Australian ecosystem.'),
136
+ ('Dog', 'Flat-Coated_Retriever', 'Large', '8-10 years', 'Optimistic, good-humored, outgoing', 'High', True, 'Very High', 'Moderate', 'Known for their shiny black or liver-colored coat, Flat-coated Retrievers are energetic and playful, excelling in both hunting and family life.'),
137
+ ('Dog', 'Giant_Schnauzer', 'Large', '10-12 years', 'Loyal, intelligent, powerful', 'High', True, 'High', 'High', 'Large and powerful, Giant Schnauzers were originally bred as working dogs and require plenty of exercise.'),
138
+ ('Dog', 'Golden_Retriever', 'Large', '10-12 years', 'Intelligent, friendly, devoted', 'High', True, 'High', 'High', 'Beautiful, golden-coated dogs known for their gentle nature and excellence in various roles. Popular as family companions, therapy dogs, and service animals, they excel in both work and companionship with their eager-to-please attitude.'),
139
+ ('Dog', 'Groenendael', 'Large', '10-12 years', 'Intelligent, protective, loyal', 'High', True, 'High', 'High', 'The black variety of Belgian Shepherd, Groenendaels are intelligent working dogs with a long, black coat. Named after their village of origin, they excel in police work, herding, and as vigilant family guardians.'),
140
+ ('Dog', 'Keeshond', 'Medium', '12-15 years', 'Friendly, lively, outgoing', 'Moderate', True, 'Moderate', 'High', 'Distinctive "spectacles" marking around their eyes, Keeshonds are fluffy, fox-like dogs known for their friendly and affectionate nature.'),
141
+ ('Dog', 'Kelpie', 'Medium', '10-13 years', 'Intelligent, energetic, loyal', 'High', True, 'Very High', 'Low', 'Australian herding dogs known for their incredible work ethic and agility. Developed to work in harsh outback conditions, they are renowned for their ability to herd from above, often running across the backs of sheep in large flocks.'),
142
+ ('Dog', 'Komondor', 'Large', '10-12 years', 'Steady, fearless, affectionate', 'High', True, 'Moderate', 'High', 'Large Hungarian sheepdogs known for their distinctive corded white coat, resembling dreadlocks. Their unique coat once helped them blend in with sheep flocks while protecting them from wolves.'),
143
+ ('Dog', 'Kuvasz', 'Large', '10-12 years', 'Protective, loyal, patient', 'High', True, 'Moderate', 'High', 'Large, white guardian dogs from Hungary, Kuvaszok are protective of their families and independent. Once royal guards of Hungarian nobility, they combine impressive strength with natural protective instincts.'),
144
+ ('Dog', 'Malamute', 'Large', '10-12 years', 'Affectionate, loyal, playful', 'High', True, 'Very High', 'High', 'Large, powerful sled dogs with thick coats, known for their strength and endurance. Originally bred by the Mahlemut tribe for hauling heavy loads in arctic conditions, they combine impressive power with a friendly, family-oriented nature.'),
145
+ ('Dog', 'Malinois', 'Medium', '12-14 years', 'Confident, smart, hardworking', 'High', True, 'High', 'Moderate', 'One of four varieties of Belgian Shepherd, known for their intelligence and use in police and military work.'),
146
+ ('Dog', 'Miniature_Pinscher', 'Small', '12-16 years', 'Fearless, energetic, alert', 'Moderate', False, 'Moderate', 'Low', 'Often called King of Toys, Miniature Pinschers are small, energetic dogs with a big personality. Despite their small size, these fearless dogs possess proud carriage and spirited animation.'),
147
+ ('Dog', 'Miniature_Poodle', 'Small', '12-15 years', 'Intelligent, active, alert', 'High', True, 'Moderate', 'High', 'Smaller version of the Standard Poodle, known for their intelligence and hypoallergenic coat. Popular show dogs and companions, they retain their larger relatives high intelligence while being more adaptable to city living.'),
148
+ ('Dog', 'Miniature_Schnauzer', 'Small', '12-15 years', 'Friendly, smart, obedient', 'Moderate', True, 'Moderate', 'High', 'The smallest of the Schnauzer breeds, known for their distinctive beard and eyebrows. Originally ratters and farm dogs, they combine intelligence with a spunky personality, making excellent watchdogs and family companions.'),
149
+ ('Dog', 'Otterhound', 'Large', '10-13 years', 'Friendly, boisterous, even-tempered', 'High', True, 'High', 'High', 'Large, shaggy-coated hounds originally bred for hunting otters, now a rare breed. Known for their strong swimming ability and powerful nose, with less than 1000 remaining worldwide, making them rarer than giant pandas.'),
150
+ ('Dog', 'Papillon', 'Small', '13-15 years', 'Happy, alert, friendly', 'Moderate', True, 'Moderate', 'Moderate', 'Small, elegant dogs known for their butterfly-like ears and lively personalities. Despite their delicate appearance, they are surprisingly athletic and intelligent, ranking among the top 10 smartest dog breeds. Also called the Continental Toy Spaniel.'),
151
+ ('Dog', 'Pug', 'Small', '12-15 years', 'Charming, mischievous, loving', 'Moderate', True, 'Low', 'Moderate', 'Small, wrinkly-faced dogs known for their charming personality and comical expression. Once favored by Chinese emperors, these "multum in parvo" (much in little) dogs are excellent companions but need attention to their breathing and temperature regulation.'),
152
+ ('Dog', 'Redbone', 'Large', '10-12 years', 'Even-tempered, amiable, eager to please', 'Moderate', True, 'High', 'Low', 'Known for their solid red coat, Redbone Coonhounds are athletic, warm-hearted dogs originally bred for hunting. Developed in the American South, they excel at tracking and treeing with remarkable stamina and a melodious voice.'),
153
+ ('Dog', 'Schipperke', 'Small', '13-15 years', 'Confident, alert, curious', 'Moderate', True, 'Moderate', 'Moderate', 'Small, black dogs with a fox-like face, Schipperkes are known for their distinctive ruff and small, pointed ears. Originally Belgian barge dogs, these little captains earned their name as boat watchdogs and ratters.'),
154
+ ('Dog', 'Silky_terrier', 'Small', '12-15 years', 'Friendly, quick, alert', 'Moderate', False, 'Moderate', 'High', 'Similar to Yorkshire Terriers but larger, Silky Terriers are playful and enjoy being part of family activities. Developed in Australia, they combine the refinement of toy dogs with the sturdy nature of working terriers.'),
155
+ ('Dog', 'Soft-Coated_Wheaten_Terrier', 'Medium', '12-14 years', 'Happy, steady, self-confident', 'High', True, 'High', 'High', 'Known for their soft, wheat-colored coat and friendly demeanor, they make great family dogs. Developed in Ireland as farm dogs, they combined versatility in herding and hunting with a uniquely soft coat unlike other terriers.'),
156
+ ('Dog', 'Standard_Poodle', 'Large', '10-18 years', 'Intelligent, active, dignified', 'High', True, 'High', 'High', 'Highly intelligent and elegant dogs, known for their hypoallergenic coat and versatility in various dog sports.'),
157
+ ('Dog', 'Standard_Schnauzer', 'Medium', '13-16 years', 'Friendly, intelligent, obedient', 'High', True, 'High', 'High', 'The original Schnauzer breed, known for their distinctive beard and eyebrows and versatile working abilities.'),
158
+ ('Dog', 'Toy_Poodle', 'Small', '12-18 years', 'Intelligent, lively, playful', 'High', True, 'Moderate', 'High', 'The smallest variety of Poodle, known for their intelligence, agility, and hypoallergenic coat. Despite their diminutive size, they retain the intelligence and athletic ability of their larger relatives.'),
159
+ ('Dog', 'Toy_Terrier', 'Small', '12-16 years', 'Lively, bold, intelligent', 'Moderate', False, 'Moderate', 'Low', 'A general term for small terrier breeds, often referring to breeds like the English Toy Terrier or Toy Fox Terrier.'),
160
+ ('Dog', 'Vizsla', 'Medium', '10-14 years', 'Affectionate, energetic, gentle', 'High', True, 'High', 'Low', 'Known for their golden-rust coat, Vizslas are versatile hunters and loving family companions. These Hungarian pointers are often called "velcro dogs" for their strong desire to stay close to their owners.'),
161
+ ('Dog', 'Whippet', 'Medium', '12-15 years', 'Gentle, affectionate, quiet', 'Low', True, 'High', 'Low', 'Slender, athletic sighthounds known for their speed - capable of reaching 35mph. Despite high exercise needs, they are calm indoor companions and excellent apartment dogs.'),
162
+ ('Dog', 'Wire-Haired_Fox_Terrier', 'Small', '12-15 years', 'Alert, confident, gregarious', 'High', True, 'High', 'High', 'Energetic and wire-coated, these terriers were originally bred for fox hunting. Their tough, dense coat and fearless nature made them ideal for flushing foxes from their dens, and they remain bold and spirited companions.'),
163
+ ]
164
+
165
+ cursor.executemany('''
166
+ INSERT INTO AnimalCatalog (Species, Breed, Size_Category, Typical_Lifespan, Temperament, Care_Level, Good_With_Children, Exercise_Needs, Grooming_Needs, Brief_Description)
167
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
168
+ ''', dog_data)
169
+
170
+ conn.commit()
171
+ cursor.close()
172
+ conn.close()
173
+
174
+ def get_dog_description(breed):
175
+ try:
176
+ conn = sqlite3.connect('animal_detector.db')
177
+ cursor = conn.cursor()
178
+
179
+ breed_name = breed.split('(')[0].strip()
180
+
181
+ cursor.execute("""
182
+ SELECT * FROM AnimalCatalog
183
+ WHERE Breed = ? OR Breed LIKE ? OR Breed LIKE ?
184
+ """, (breed_name, f"{breed_name}%", f"%{breed_name}"))
185
+
186
+ result = cursor.fetchone()
187
+
188
+ cursor.close()
189
+ conn.close()
190
+
191
+ if result:
192
+ # 標準化運動需求值
193
+ exercise_needs = result[8]
194
+ normalized_exercise = exercise_needs.strip().title()
195
+ if normalized_exercise not in ["Very High", "High", "Moderate", "Low"]:
196
+ normalized_exercise = "High" # 預設值
197
+
198
+ description = {
199
+ "Breed": result[2],
200
+ "Size": result[3],
201
+ "Lifespan": result[4],
202
+ "Temperament": result[5],
203
+ "Care Level": result[6],
204
+ "Good with Children": "Yes" if result[7] else "No",
205
+ "Exercise Needs": normalized_exercise,
206
+ "Grooming Needs": result[9],
207
+ "Description": result[10]
208
+ }
209
+ return description
210
+ else:
211
+ print(f"No data found for breed: {breed_name}")
212
+ return None
213
+
214
+ except Exception as e:
215
+ print(f"Error in get_dog_description: {str(e)}")
216
+ return None
217
+
218
+ insert_dog_data()
219
+
220
+
221
+ @dataclass
222
+ class UserPreferences:
223
+ """使用者偏好設定的資料結構"""
224
+ living_space: str # "apartment", "house_small", "house_large"
225
+ exercise_time: int # minutes per day
226
+ grooming_commitment: str # "low", "medium", "high"
227
+ experience_level: str # "beginner", "intermediate", "advanced"
228
+ has_children: bool
229
+ noise_tolerance: str # "low", "medium", "high"
230
+ space_for_play: bool
231
+ other_pets: bool
232
+ climate: str # "cold", "moderate", "hot"
233
+
234
+
235
+ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences) -> dict:
236
+ """計算品種與使用者條件的相容性分數"""
237
+ scores = {}
238
+ try:
239
+ # 1. 空間相容性計算
240
+ def calculate_space_score(size, living_space, has_yard):
241
+ base_scores = {
242
+ "Small": {"apartment": 0.95, "house_small": 1.0, "house_large": 0.90},
243
+ "Medium": {"apartment": 0.65, "house_small": 0.90, "house_large": 1.0},
244
+ "Large": {"apartment": 0.35, "house_small": 0.75, "house_large": 1.0},
245
+ "Giant": {"apartment": 0.15, "house_small": 0.55, "house_large": 1.0}
246
+ }
247
+
248
+ base_score = base_scores.get(size, base_scores["Medium"])[living_space]
249
+ adjustments = 0
250
+
251
+ # 特殊情況調整
252
+ if living_space == "apartment":
253
+ if size == "Small":
254
+ adjustments += 0.05
255
+ elif size in ["Large", "Giant"]:
256
+ adjustments -= 0.15
257
+
258
+ if has_yard and living_space in ["house_small", "house_large"]:
259
+ adjustments += 0.05
260
+
261
+ return min(1.0, max(0, base_score + adjustments))
262
+
263
+ # 2. 運動相容性計算
264
+ def calculate_exercise_score(breed_exercise_needs, user_exercise_time):
265
+ exercise_needs = {
266
+ 'VERY HIGH': 120,
267
+ 'HIGH': 90,
268
+ 'MODERATE': 60,
269
+ 'LOW': 30,
270
+ 'VARIES': 60
271
+ }
272
+
273
+ breed_need = exercise_needs.get(breed_exercise_needs.strip().upper(), 60)
274
+ difference = abs(user_exercise_time - breed_need) / breed_need
275
+
276
+ if difference == 0:
277
+ return 1.0
278
+ elif difference <= 0.2:
279
+ return 0.95
280
+ elif difference <= 0.4:
281
+ return 0.85
282
+ elif difference <= 0.6:
283
+ return 0.70
284
+ elif difference <= 0.8:
285
+ return 0.50
286
+ else:
287
+ return 0.30
288
+
289
+ # 3. 美容需求計算
290
+ def calculate_grooming_score(breed_grooming_needs, user_commitment, breed_size):
291
+ base_scores = {
292
+ "High": {"low": 0.3, "medium": 0.7, "high": 1.0},
293
+ "Moderate": {"low": 0.5, "medium": 0.9, "high": 1.0},
294
+ "Low": {"low": 1.0, "medium": 0.95, "high": 0.9}
295
+ }
296
+
297
+ base_score = base_scores.get(breed_grooming_needs, base_scores["Moderate"])[user_commitment]
298
+
299
+ if breed_size == "Large" and user_commitment == "low":
300
+ base_score *= 0.80
301
+ elif breed_size == "Giant" and user_commitment == "low":
302
+ base_score *= 0.70
303
+
304
+ return base_score
305
+
306
+ # 4. 經驗等級計算
307
+ def calculate_experience_score(care_level, user_experience, temperament):
308
+ base_scores = {
309
+ "High": {"beginner": 0.3, "intermediate": 0.7, "advanced": 1.0},
310
+ "Moderate": {"beginner": 0.6, "intermediate": 0.9, "advanced": 1.0},
311
+ "Low": {"beginner": 0.9, "intermediate": 1.0, "advanced": 1.0}
312
+ }
313
+
314
+ score = base_scores.get(care_level, base_scores["Moderate"])[user_experience]
315
+
316
+ temperament_lower = temperament.lower()
317
+ if user_experience == "beginner":
318
+ if any(trait in temperament_lower for trait in ['stubborn', 'independent', 'intelligent']):
319
+ score *= 0.80
320
+ if any(trait in temperament_lower for trait in ['easy', 'gentle', 'friendly']):
321
+ score *= 1.15
322
+
323
+ return min(1.0, score)
324
+
325
+ # 計算各項分數
326
+ scores['space'] = calculate_space_score(
327
+ breed_info['Size'],
328
+ user_prefs.living_space,
329
+ user_prefs.space_for_play
330
+ )
331
+
332
+ scores['exercise'] = calculate_exercise_score(
333
+ breed_info.get('Exercise Needs', 'Moderate'),
334
+ user_prefs.exercise_time
335
+ )
336
+
337
+ scores['grooming'] = calculate_grooming_score(
338
+ breed_info.get('Grooming Needs', 'Moderate'),
339
+ user_prefs.grooming_commitment.lower(),
340
+ breed_info['Size']
341
+ )
342
+
343
+ scores['experience'] = calculate_experience_score(
344
+ breed_info.get('Care Level', 'Moderate'),
345
+ user_prefs.experience_level,
346
+ breed_info.get('Temperament', '')
347
+ )
348
+
349
+ # 基礎權重
350
+ weights = {
351
+ 'space': 0.30,
352
+ 'exercise': 0.25,
353
+ 'grooming': 0.15,
354
+ 'experience': 0.30
355
+ }
356
+
357
+ # 基礎分數計算
358
+ base_score = sum(score * weights[category]
359
+ for category, score in scores.items()
360
+ if category != 'overall')
361
+
362
+ # 根據性格特徵調整
363
+ temperament = breed_info.get('Temperament', '').lower()
364
+ personality_bonus = 0
365
+
366
+ positive_traits = ['friendly', 'gentle', 'affectionate']
367
+ negative_traits = ['aggressive', 'stubborn', 'dominant']
368
+
369
+ personality_bonus += sum(0.02 for trait in positive_traits if trait in temperament)
370
+ personality_bonus -= sum(0.02 for trait in negative_traits if trait in temperament)
371
+
372
+ adjusted_score = base_score + personality_bonus
373
+
374
+ # 最終分數,加入微小隨機變化
375
+ final_score = min(1.0, max(0, adjusted_score + random.uniform(-0.005, 0.005)))
376
+ scores['overall'] = round(final_score, 4)
377
+
378
+ return scores
379
+
380
+ except Exception as e:
381
+ print(f"Error in calculate_compatibility_score: {str(e)}")
382
+ return {
383
+ 'space': 0.5,
384
+ 'exercise': 0.5,
385
+ 'grooming': 0.5,
386
+ 'experience': 0.5,
387
+ 'overall': 0.5
388
+ }
389
+
390
+
391
+ def get_breed_recommendations(user_prefs: UserPreferences, top_n: int = 5) -> List[Dict]:
392
+ """基於使用者偏好推薦狗品種,確保正確的分數排序"""
393
+ recommendations = []
394
+ seen_breeds = set()
395
+
396
+ try:
397
+ # 獲取所有品種
398
+ conn = sqlite3.connect('animal_detector.db')
399
+ cursor = conn.cursor()
400
+ cursor.execute("SELECT Breed FROM AnimalCatalog")
401
+ all_breeds = cursor.fetchall()
402
+ conn.close()
403
+
404
+ # 收集所有品種的分數
405
+ for breed_tuple in all_breeds:
406
+ breed = breed_tuple[0]
407
+ base_breed = breed.split('(')[0].strip()
408
+
409
+ # 避免重複品種
410
+ if base_breed in seen_breeds:
411
+ continue
412
+ seen_breeds.add(base_breed)
413
+
414
+ # 獲取品種資訊
415
+ breed_info = get_dog_description(breed)
416
+ if not isinstance(breed_info, dict):
417
+ continue
418
+
419
+ # 計算基礎相容性分數
420
+ compatibility_scores = calculate_compatibility_score(breed_info, user_prefs)
421
+
422
+ # 計算品種特定加分
423
+ breed_bonus = 0.0
424
+
425
+ # 1. 壽命加分
426
+ try:
427
+ lifespan = breed_info.get('Lifespan', '10-12 years')
428
+ years = [int(x) for x in lifespan.split('-')[0].split()[0:1]]
429
+ longevity_bonus = min(0.02, (max(years) - 10) * 0.005)
430
+ breed_bonus += longevity_bonus
431
+ except:
432
+ pass
433
+
434
+ # 2. 性格特徵加分
435
+ temperament = breed_info.get('Temperament', '').lower()
436
+ positive_traits = ['friendly', 'gentle', 'affectionate', 'intelligent']
437
+ negative_traits = ['aggressive', 'stubborn', 'dominant']
438
+
439
+ breed_bonus += sum(0.01 for trait in positive_traits if trait in temperament)
440
+ breed_bonus -= sum(0.01 for trait in negative_traits if trait in temperament)
441
+
442
+ # 3. 與孩童相容性加分
443
+ if user_prefs.has_children:
444
+ if breed_info.get('Good with Children') == 'Yes':
445
+ breed_bonus += 0.02
446
+ elif breed_info.get('Good with Children') == 'No':
447
+ breed_bonus -= 0.03
448
+
449
+ # 計算最終分數
450
+ final_score = compatibility_scores['overall'] + breed_bonus
451
+ final_score = round(min(1.0, max(0, final_score)), 4)
452
+
453
+ # 儲存所有相關分數
454
+ recommendations.append({
455
+ 'breed': breed,
456
+ 'base_score': compatibility_scores['overall'],
457
+ 'bonus_score': breed_bonus,
458
+ 'final_score': final_score,
459
+ 'scores': compatibility_scores,
460
+ 'info': breed_info
461
+ })
462
+
463
+ # 嚴格按照 final_score 排序
464
+ recommendations.sort(key=lambda x: x['final_score'], reverse=True)
465
+
466
+ # 選擇前N名並確保正確排序
467
+ final_recommendations = []
468
+ last_score = None
469
+ rank = 1
470
+
471
+ for rec in recommendations:
472
+ if len(final_recommendations) >= top_n:
473
+ break
474
+
475
+ current_score = rec['final_score']
476
+
477
+ # 確保分數遞減
478
+ if last_score is not None and current_score > last_score:
479
+ continue
480
+
481
+ # 添加排名資訊
482
+ rec['rank'] = rank
483
+ final_recommendations.append(rec)
484
+
485
+ last_score = current_score
486
+ rank += 1
487
+
488
+ # 驗證最終排序
489
+ for i in range(len(final_recommendations)-1):
490
+ current = final_recommendations[i]
491
+ next_rec = final_recommendations[i+1]
492
+
493
+ if current['final_score'] < next_rec['final_score']:
494
+ print(f"Warning: Sorting error detected!")
495
+ print(f"#{i+1} {current['breed']}: {current['final_score']}")
496
+ print(f"#{i+2} {next_rec['breed']}: {next_rec['final_score']}")
497
+
498
+ # 交換位置
499
+ final_recommendations[i], final_recommendations[i+1] = \
500
+ final_recommendations[i+1], final_recommendations[i]
501
+
502
+ # 打印最終結果以供驗證
503
+ print("\nFinal Rankings:")
504
+ for rec in final_recommendations:
505
+ print(f"#{rec['rank']} {rec['breed']}")
506
+ print(f"Base Score: {rec['base_score']:.4f}")
507
+ print(f"Bonus: {rec['bonus_score']:.4f}")
508
+ print(f"Final Score: {rec['final_score']:.4f}\n")
509
+
510
+ return final_recommendations
511
+
512
+ except Exception as e:
513
+ print(f"Error in get_breed_recommendations: {str(e)}")
514
+ print(f"Traceback: {traceback.format_exc()}")
515
+ return []
516
+
517
+
518
+
519
+ def calculate_breed_bonus(breed_info: dict, user_prefs: UserPreferences) -> float:
520
+ """計算品種額外加分"""
521
+ bonus = 0.0
522
+
523
+ # 壽命加分
524
+ try:
525
+ lifespan = breed_info.get('Lifespan', '10-12 years')
526
+ years = [int(x) for x in lifespan.split('-')[0].split()[0:1]]
527
+ longevity_bonus = min(0.05, (max(years) - 10) * 0.01)
528
+ bonus += longevity_bonus
529
+ except:
530
+ pass
531
+
532
+ # 性格特徵加分
533
+ temperament = breed_info.get('Temperament', '').lower()
534
+ if user_prefs.has_children:
535
+ if 'gentle' in temperament or 'patient' in temperament:
536
+ bonus += 0.03
537
+
538
+ # 適應性加分
539
+ if breed_info.get('Size') == "Small" and user_prefs.living_space == "apartment":
540
+ bonus += 0.02
541
+
542
+ return bonus
543
+
544
+ def calculate_additional_factors(breed_info: dict, user_prefs: UserPreferences) -> dict:
545
+ """計算額外的排序因素"""
546
+ factors = {
547
+ 'versatility': 0.0,
548
+ 'health_score': 0.0,
549
+ 'adaptability': 0.0
550
+ }
551
+
552
+ # 計算多功能性分數
553
+ temperament = breed_info.get('Temperament', '').lower()
554
+ versatile_traits = ['intelligent', 'adaptable', 'versatile', 'trainable']
555
+ factors['versatility'] = sum(trait in temperament for trait in versatile_traits) / len(versatile_traits)
556
+
557
+ # 計算健康分數(基於預期壽命)
558
+ lifespan = breed_info.get('Lifespan', '10-12 years')
559
+ try:
560
+ years = [int(x) for x in lifespan.split('-')[0].split()[0:1]]
561
+ factors['health_score'] = min(1.0, max(years) / 15) # 標準化到0-1範圍
562
+ except:
563
+ factors['health_score'] = 0.5 # 預設值
564
+
565
+ # 計算適應性分數
566
+ size = breed_info.get('Size', 'Medium')
567
+ factors['adaptability'] = {
568
+ 'Small': 0.9,
569
+ 'Medium': 0.7,
570
+ 'Large': 0.5,
571
+ 'Giant': 0.3
572
+ }.get(size, 0.5)
573
+
574
+ return factors
575
+
576
+ def format_recommendation_html(recommendations: List[Dict]) -> str:
577
+ """將推薦結果格式化為HTML,包含完整的分數說明與品種資訊,以及健康資訊"""
578
+ html_content = "<div class='recommendations-container'>"
579
+
580
+ for rec in recommendations:
581
+ breed = rec['breed']
582
+ scores = rec['scores']
583
+ info = rec['info']
584
+ rank = rec.get('rank', 0)
585
+ final_score = rec.get('final_score', scores['overall'])
586
+ bonus_score = rec.get('bonus_score', 0)
587
+
588
+ # 獲取健康資訊
589
+ health_info = breed_health_info.get(breed, {"health_notes": default_health_note})
590
+
591
+ # 收集加分原因
592
+ bonus_reasons = []
593
+ temperament = info.get('Temperament', '').lower()
594
+ if any(trait in temperament for trait in ['friendly', 'gentle', 'affectionate']):
595
+ bonus_reasons.append("Positive temperament traits")
596
+ if info.get('Good with Children') == 'Yes':
597
+ bonus_reasons.append("Excellent with children")
598
+ try:
599
+ lifespan = info.get('Lifespan', '10-12 years')
600
+ years = int(lifespan.split('-')[0])
601
+ if years > 12:
602
+ bonus_reasons.append("Above-average lifespan")
603
+ except:
604
+ pass
605
+
606
+ html_content += f"""
607
+ <div class="dog-info-card recommendation-card">
608
+ <div class="breed-info">
609
+ <h2 class="section-title">
610
+ <span class="icon">🏆</span> #{rank} {breed.replace('_', ' ')}
611
+ <span class="score-badge">
612
+ Overall Match: {final_score*100:.1f}%
613
+ </span>
614
+ </h2>
615
+ <div class="compatibility-scores">
616
+ <div class="score-item">
617
+ <span class="label">Space Compatibility:</span>
618
+ <div class="progress-bar">
619
+ <div class="progress" style="width: {scores['space']*100}%"></div>
620
+ </div>
621
+ <span class="percentage">{scores['space']*100:.1f}%</span>
622
+ </div>
623
+ <div class="score-item">
624
+ <span class="label">Exercise Match:</span>
625
+ <div class="progress-bar">
626
+ <div class="progress" style="width: {scores['exercise']*100}%"></div>
627
+ </div>
628
+ <span class="percentage">{scores['exercise']*100:.1f}%</span>
629
+ </div>
630
+ <div class="score-item">
631
+ <span class="label">Grooming Match:</span>
632
+ <div class="progress-bar">
633
+ <div class="progress" style="width: {scores['grooming']*100}%"></div>
634
+ </div>
635
+ <span class="percentage">{scores['grooming']*100:.1f}%</span>
636
+ </div>
637
+ <div class="score-item">
638
+ <span class="label">Experience Match:</span>
639
+ <div class="progress-bar">
640
+ <div class="progress" style="width: {scores['experience']*100}%"></div>
641
+ </div>
642
+ <span class="percentage">{scores['experience']*100:.1f}%</span>
643
+ </div>
644
+ {f'''
645
+ <div class="score-item bonus-score">
646
+ <span class="label">
647
+ Breed Bonus:
648
+ <span class="tooltip">
649
+ <span class="tooltip-icon">ⓘ</span>
650
+ <span class="tooltip-text">
651
+ <strong>Breed Bonus Points:</strong><br>
652
+ • {('<br>• '.join(bonus_reasons)) if bonus_reasons else 'No additional bonus points'}<br>
653
+ <br>
654
+ <strong>Bonus Factors Include:</strong><br>
655
+ • Friendly temperament<br>
656
+ • Child compatibility<br>
657
+ • Longer lifespan<br>
658
+ • Living space adaptability
659
+ </span>
660
+ </span>
661
+ </span>
662
+ <div class="progress-bar">
663
+ <div class="progress" style="width: {bonus_score*100}%"></div>
664
+ </div>
665
+ <span class="percentage">{bonus_score*100:.1f}%</span>
666
+ </div>
667
+ ''' if bonus_score > 0 else ''}
668
+ </div>
669
+ <div class="breed-details-section">
670
+ <h3 class="subsection-title">
671
+ <span class="icon">📋</span> Breed Details
672
+ </h3>
673
+ <div class="details-grid">
674
+ <div class="detail-item">
675
+ <span class="tooltip">
676
+ <span class="icon">📏</span>
677
+ <span class="label">Size:</span>
678
+ <span class="tooltip-icon">ⓘ</span>
679
+ <span class="tooltip-text">
680
+ <strong>Size Categories:</strong><br>
681
+ • Small: Under 20 pounds<br>
682
+ • Medium: 20-60 pounds<br>
683
+ • Large: Over 60 pounds
684
+ </span>
685
+ <span class="value">{info['Size']}</span>
686
+ </span>
687
+ </div>
688
+ <div class="detail-item">
689
+ <span class="tooltip">
690
+ <span class="icon">🏃</span>
691
+ <span class="label">Exercise Needs:</span>
692
+ <span class="tooltip-icon">ⓘ</span>
693
+ <span class="tooltip-text">
694
+ <strong>Exercise Needs:</strong><br>
695
+ • Low: Short walks<br>
696
+ • Moderate: 1-2 hours daily<br>
697
+ • High: 2+ hours daily<br>
698
+ • Very High: Constant activity
699
+ </span>
700
+ <span class="value">{info['Exercise Needs']}</span>
701
+ </span>
702
+ </div>
703
+ <div class="detail-item">
704
+ <span class="tooltip">
705
+ <span class="icon">👨‍👩‍👧‍👦</span>
706
+ <span class="label">Good with Children:</span>
707
+ <span class="tooltip-icon">ⓘ</span>
708
+ <span class="tooltip-text">
709
+ <strong>Child Compatibility:</strong><br>
710
+ • Yes: Excellent with kids<br>
711
+ • Moderate: Good with older children<br>
712
+ • No: Better for adult households
713
+ </span>
714
+ <span class="value">{info['Good with Children']}</span>
715
+ </span>
716
+ </div>
717
+ </div>
718
+ </div>
719
+ <div class="description-section">
720
+ <h3 class="subsection-title">
721
+ <span class="icon">📝</span> Description
722
+ </h3>
723
+ <p class="description-text">{info.get('Description', '')}</p>
724
+ </div>
725
+ <div class="health-section">
726
+ <h3 class="subsection-title">
727
+ <span class="icon">🏥</span> Health Insights
728
+ <span class="tooltip">
729
+ <span class="tooltip-icon">ⓘ</span>
730
+ <span class="tooltip-text">
731
+ Health information is compiled from AKC and veterinary organizations.
732
+ Individual dogs may vary.
733
+ </span>
734
+ </span>
735
+ </h3>
736
+
737
+ <div class="health-info">
738
+ <div class="health-details">
739
+ <h4>Common breed-specific health considerations (Source: AKC):</h4>
740
+ <ul>
741
+ <li>Patellar luxation</li>
742
+ <li>Progressive retinal atrophy</li>
743
+ <li>Von Willebrand's disease</li>
744
+ <li>Open fontanel</li>
745
+ </ul>
746
+
747
+ <h4>Recommended health screenings:</h4>
748
+ <ul>
749
+ <li>Patella evaluation</li>
750
+ <li>Eye examination</li>
751
+ <li>Blood clotting tests</li>
752
+ <li>Skull development monitoring</li>
753
+ </ul>
754
+ </div>
755
+ </div>
756
+
757
+ <div class="health-disclaimer">
758
+ <p>» Source: AKC Health Database, 2024</p>
759
+ <p>» This information is for reference only and based on breed tendencies.</p>
760
+ <p>» Each dog is unique and may not develop any or all of these conditions.</p>
761
+ <p>» Always consult with qualified veterinarians for professional advice.</p>
762
+ </div>
763
+ </div>
764
+ <div class="action-section">
765
+ <a href="https://www.akc.org/dog-breeds/{breed.lower().replace('_', '-')}/"
766
+ target="_blank"
767
+ class="akc-button">
768
+ <span class="icon">🌐</span>
769
+ Learn more about {breed.replace('_', ' ')} on AKC website
770
+ </a>
771
+ </div>
772
+ </div>
773
+ </div>
774
+ """
775
+
776
+ html_content += "</div>"
777
+ return html_content