Pop-up dictionary browser extension for language learning. Successor to Yomichan. (PERSONAL FORK)
1{
2 "expectedSummary": {
3 "title": "Test Dictionary",
4 "revision": "test",
5 "sequenced": true,
6 "styles": "ul[data-sc-content='glossary'] {\n color: #ffff00;\n}",
7 "version": 3,
8 "importDate": 0,
9 "importSuccess": true,
10 "prefixWildcardsSupported": true,
11 "counts": {
12 "kanji": {
13 "total": 2
14 },
15 "kanjiMeta": {
16 "total": 6,
17 "freq": 6
18 },
19 "media": {
20 "total": 6
21 },
22 "tagMeta": {
23 "total": 15
24 },
25 "termMeta": {
26 "total": 40,
27 "freq": 31,
28 "pitch": 8,
29 "ipa": 1
30 },
31 "terms": {
32 "total": 34
33 }
34 }
35 },
36 "expectedCounts": {
37 "counts": [
38 {
39 "kanji": 2,
40 "kanjiMeta": 6,
41 "terms": 34,
42 "termMeta": 40,
43 "tagMeta": 15,
44 "media": 6
45 }
46 ],
47 "total": {
48 "kanji": 2,
49 "kanjiMeta": 6,
50 "terms": 34,
51 "termMeta": 40,
52 "tagMeta": 15,
53 "media": 6
54 }
55 },
56 "tests": {
57 "findTermsBulk": [
58 {
59 "inputs": [
60 {
61 "matchType": "exact",
62 "termList": [
63 "打",
64 "打つ",
65 "打ち込む"
66 ]
67 },
68 {
69 "matchType": "exact",
70 "termList": [
71 "だ",
72 "ダース",
73 "うつ",
74 "ぶつ",
75 "うちこむ",
76 "ぶちこむ"
77 ]
78 },
79 {
80 "matchType": "prefix",
81 "termList": [
82 "打"
83 ]
84 }
85 ],
86 "expectedResults": {
87 "total": 10,
88 "terms": [
89 [
90 "打",
91 2
92 ],
93 [
94 "打つ",
95 4
96 ],
97 [
98 "打ち込む",
99 4
100 ]
101 ],
102 "readings": [
103 [
104 "だ",
105 1
106 ],
107 [
108 "ダース",
109 1
110 ],
111 [
112 "うつ",
113 2
114 ],
115 [
116 "ぶつ",
117 2
118 ],
119 [
120 "うちこむ",
121 2
122 ],
123 [
124 "ぶちこむ",
125 2
126 ]
127 ]
128 }
129 },
130 {
131 "inputs": [
132 {
133 "matchType": "exact",
134 "termList": [
135 "込む"
136 ]
137 }
138 ],
139 "expectedResults": {
140 "total": 0,
141 "terms": [],
142 "readings": []
143 }
144 },
145 {
146 "inputs": [
147 {
148 "matchType": "suffix",
149 "termList": [
150 "込む"
151 ]
152 }
153 ],
154 "expectedResults": {
155 "total": 4,
156 "terms": [
157 [
158 "打ち込む",
159 4
160 ]
161 ],
162 "readings": [
163 [
164 "うちこむ",
165 2
166 ],
167 [
168 "ぶちこむ",
169 2
170 ]
171 ]
172 }
173 },
174 {
175 "inputs": [
176 {
177 "matchType": "exact",
178 "termList": []
179 }
180 ],
181 "expectedResults": {
182 "total": 0,
183 "terms": [],
184 "readings": []
185 }
186 }
187 ],
188 "findTermsExactBulk": [
189 {
190 "inputs": [
191 {
192 "termList": [
193 {
194 "term": "打",
195 "reading": "だ"
196 },
197 {
198 "term": "打つ",
199 "reading": "うつ"
200 },
201 {
202 "term": "打ち込む",
203 "reading": "うちこむ"
204 }
205 ]
206 }
207 ],
208 "expectedResults": {
209 "total": 5,
210 "terms": [
211 [
212 "打",
213 1
214 ],
215 [
216 "打つ",
217 2
218 ],
219 [
220 "打ち込む",
221 2
222 ]
223 ],
224 "readings": [
225 [
226 "だ",
227 1
228 ],
229 [
230 "うつ",
231 2
232 ],
233 [
234 "うちこむ",
235 2
236 ]
237 ]
238 }
239 },
240 {
241 "inputs": [
242 {
243 "termList": [
244 {
245 "term": "打",
246 "reading": "だ?"
247 },
248 {
249 "term": "打つ",
250 "reading": "うつ?"
251 },
252 {
253 "term": "打ち込む",
254 "reading": "うちこむ?"
255 }
256 ]
257 }
258 ],
259 "expectedResults": {
260 "total": 0,
261 "terms": [],
262 "readings": []
263 }
264 },
265 {
266 "inputs": [
267 {
268 "termList": [
269 {
270 "term": "打つ",
271 "reading": "うつ"
272 },
273 {
274 "term": "打つ",
275 "reading": "ぶつ"
276 }
277 ]
278 }
279 ],
280 "expectedResults": {
281 "total": 4,
282 "terms": [
283 [
284 "打つ",
285 4
286 ]
287 ],
288 "readings": [
289 [
290 "うつ",
291 2
292 ],
293 [
294 "ぶつ",
295 2
296 ]
297 ]
298 }
299 },
300 {
301 "inputs": [
302 {
303 "termList": [
304 {
305 "term": "打つ",
306 "reading": "うちこむ"
307 }
308 ]
309 }
310 ],
311 "expectedResults": {
312 "total": 0,
313 "terms": [],
314 "readings": []
315 }
316 },
317 {
318 "inputs": [
319 {
320 "termList": []
321 }
322 ],
323 "expectedResults": {
324 "total": 0,
325 "terms": [],
326 "readings": []
327 }
328 }
329 ],
330 "findTermsBySequenceBulk": [
331 {
332 "inputs": [
333 {
334 "sequenceList": [
335 1,
336 2,
337 3,
338 4,
339 5
340 ]
341 }
342 ],
343 "expectedResults": {
344 "total": 11,
345 "terms": [
346 [
347 "打",
348 2
349 ],
350 [
351 "打つ",
352 4
353 ],
354 [
355 "打ち込む",
356 4
357 ],
358 [
359 "画像",
360 1
361 ]
362 ],
363 "readings": [
364 [
365 "だ",
366 1
367 ],
368 [
369 "ダース",
370 1
371 ],
372 [
373 "うつ",
374 2
375 ],
376 [
377 "ぶつ",
378 2
379 ],
380 [
381 "うちこむ",
382 2
383 ],
384 [
385 "ぶちこむ",
386 2
387 ],
388 [
389 "がぞう",
390 1
391 ]
392 ]
393 }
394 },
395 {
396 "inputs": [
397 {
398 "sequenceList": [
399 1
400 ]
401 }
402 ],
403 "expectedResults": {
404 "total": 1,
405 "terms": [
406 [
407 "打",
408 1
409 ]
410 ],
411 "readings": [
412 [
413 "だ",
414 1
415 ]
416 ]
417 }
418 },
419 {
420 "inputs": [
421 {
422 "sequenceList": [
423 2
424 ]
425 }
426 ],
427 "expectedResults": {
428 "total": 1,
429 "terms": [
430 [
431 "打",
432 1
433 ]
434 ],
435 "readings": [
436 [
437 "ダース",
438 1
439 ]
440 ]
441 }
442 },
443 {
444 "inputs": [
445 {
446 "sequenceList": [
447 3
448 ]
449 }
450 ],
451 "expectedResults": {
452 "total": 4,
453 "terms": [
454 [
455 "打つ",
456 4
457 ]
458 ],
459 "readings": [
460 [
461 "うつ",
462 2
463 ],
464 [
465 "ぶつ",
466 2
467 ]
468 ]
469 }
470 },
471 {
472 "inputs": [
473 {
474 "sequenceList": [
475 4
476 ]
477 }
478 ],
479 "expectedResults": {
480 "total": 4,
481 "terms": [
482 [
483 "打ち込む",
484 4
485 ]
486 ],
487 "readings": [
488 [
489 "うちこむ",
490 2
491 ],
492 [
493 "ぶちこむ",
494 2
495 ]
496 ]
497 }
498 },
499 {
500 "inputs": [
501 {
502 "sequenceList": [
503 5
504 ]
505 }
506 ],
507 "expectedResults": {
508 "total": 1,
509 "terms": [
510 [
511 "画像",
512 1
513 ]
514 ],
515 "readings": [
516 [
517 "がぞう",
518 1
519 ]
520 ]
521 }
522 },
523 {
524 "inputs": [
525 {
526 "sequenceList": [
527 1099490
528 ]
529 }
530 ],
531 "expectedResults": {
532 "total": 1,
533 "terms": [
534 [
535 "発条",
536 1
537 ]
538 ],
539 "readings": [
540 [
541 "ばね",
542 1
543 ]
544 ]
545 }
546 },
547 {
548 "inputs": [
549 {
550 "sequenceList": [
551 -1
552 ]
553 }
554 ],
555 "expectedResults": {
556 "total": 0,
557 "terms": [],
558 "readings": []
559 }
560 },
561 {
562 "inputs": [
563 {
564 "sequenceList": []
565 }
566 ],
567 "expectedResults": {
568 "total": 0,
569 "terms": [],
570 "readings": []
571 }
572 }
573 ],
574 "findTermMetaBulk": [
575 {
576 "inputs": [
577 {
578 "termList": [
579 "打"
580 ]
581 }
582 ],
583 "expectedResults": {
584 "total": 11,
585 "modes": [
586 [
587 "freq",
588 11
589 ]
590 ]
591 }
592 },
593 {
594 "inputs": [
595 {
596 "termList": [
597 "打つ"
598 ]
599 }
600 ],
601 "expectedResults": {
602 "total": 10,
603 "modes": [
604 [
605 "freq",
606 10
607 ]
608 ]
609 }
610 },
611 {
612 "inputs": [
613 {
614 "termList": [
615 "打ち込む"
616 ]
617 }
618 ],
619 "expectedResults": {
620 "total": 13,
621 "modes": [
622 [
623 "freq",
624 10
625 ],
626 [
627 "pitch",
628 3
629 ]
630 ]
631 }
632 },
633 {
634 "inputs": [
635 {
636 "termList": [
637 "?"
638 ]
639 }
640 ],
641 "expectedResults": {
642 "total": 0,
643 "modes": []
644 }
645 }
646 ],
647 "findKanjiBulk": [
648 {
649 "inputs": [
650 {
651 "kanjiList": [
652 "打"
653 ]
654 }
655 ],
656 "expectedResults": {
657 "total": 1,
658 "kanji": [
659 [
660 "打",
661 1
662 ]
663 ]
664 }
665 },
666 {
667 "inputs": [
668 {
669 "kanjiList": [
670 "込"
671 ]
672 }
673 ],
674 "expectedResults": {
675 "total": 1,
676 "kanji": [
677 [
678 "込",
679 1
680 ]
681 ]
682 }
683 },
684 {
685 "inputs": [
686 {
687 "kanjiList": [
688 "?"
689 ]
690 }
691 ],
692 "expectedResults": {
693 "total": 0,
694 "kanji": []
695 }
696 }
697 ],
698 "findKanjiMetaBulk": [
699 {
700 "inputs": [
701 {
702 "kanjiList": [
703 "打"
704 ]
705 }
706 ],
707 "expectedResults": {
708 "total": 3,
709 "modes": [
710 [
711 "freq",
712 3
713 ]
714 ]
715 }
716 },
717 {
718 "inputs": [
719 {
720 "kanjiList": [
721 "込"
722 ]
723 }
724 ],
725 "expectedResults": {
726 "total": 3,
727 "modes": [
728 [
729 "freq",
730 3
731 ]
732 ]
733 }
734 },
735 {
736 "inputs": [
737 {
738 "kanjiList": [
739 "?"
740 ]
741 }
742 ],
743 "expectedResults": {
744 "total": 0,
745 "modes": []
746 }
747 }
748 ],
749 "findTagForTitle": [
750 {
751 "inputs": [
752 {
753 "name": "E1"
754 }
755 ],
756 "expectedResults": {
757 "value": {
758 "category": "default",
759 "dictionary": "Test Dictionary",
760 "name": "E1",
761 "notes": "example tag 1",
762 "order": 0,
763 "score": 0
764 }
765 }
766 },
767 {
768 "inputs": [
769 {
770 "name": "K1"
771 }
772 ],
773 "expectedResults": {
774 "value": {
775 "category": "default",
776 "dictionary": "Test Dictionary",
777 "name": "K1",
778 "notes": "example kanji tag 1",
779 "order": 0,
780 "score": 0
781 }
782 }
783 },
784 {
785 "inputs": [
786 {
787 "name": "kstat1"
788 }
789 ],
790 "expectedResults": {
791 "value": {
792 "category": "class",
793 "dictionary": "Test Dictionary",
794 "name": "kstat1",
795 "notes": "kanji stat 1",
796 "order": 0,
797 "score": 0
798 }
799 }
800 },
801 {
802 "inputs": [
803 {
804 "name": "invalid"
805 }
806 ],
807 "expectedResults": {
808 "value": null
809 }
810 }
811 ]
812 }
813}