-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.html
1356 lines (1184 loc) · 126 KB
/
api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google" content="notranslate">
<title>Romaji2Kana - API</title>
<meta name="description" content="The powerful Romaji2Kana REST API lets you integrate various validation and conversion functionalities into your projects. The documentation provides you with many examples of its usage.">
<meta name="keywords" content="Romaji, Kana, Hiragana, Katakana, Japanese, Converter, API">
<meta name="author" content="Leander Christmann">
<meta property="og:title" content="Romaji2Kana API"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="https://romaji2kana.com/romaji2kana.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="675"/>
<meta property="og:image:alt" content="Romaji2Kana Logo"/>
<meta property="og:url" content="https://romaji2kana.com/api"/>
<meta property="og:description" content="The powerful Romaji2Kana REST API lets you integrate various validation and conversion functionalities into your projects. The documentation provides you with many examples of its usage.">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="Romaji2Kana">
<link rel="shortcut icon" href="logo.svg" type="image/x-icon">
<link rel="stylesheet" href="css/output.css">
<style>
/* This prevents the modal from flickering on page load (coming from it being loaded before Alpine Js is initialized and hides it) */
[x-cloak] {
display: none !important;
}
</style>
<!-- Alpine.js' plugins must be included before its core JS file -->
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/collapse@3.x.x/dist/cdn.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
</head>
<body class="min-h-screen bg-white">
<!-- Blurry color cloud in the background -->
<div class="fixed inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80" aria-hidden="true">
<div class="relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"
style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)">
</div>
</div>
<!-- Header -->
<header class="absolute inset-x-0 top-0 z-50">
<nav class="p-6 lg:px-8">
<a href=".">
<img class="h-8 w-8" src="logo.svg" alt="Romaji2Kana Logo">
</a>
</nav>
</header>
<main class="isolate">
<div class="relative pt-14">
<!-- API documentation -->
<div class="pt-12 sm:pt-16">
<div class="mx-auto max-w-7xl px-6 lg:px-8">
<div class="mx-auto max-w-2xl text-center">
<h1 class="text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl md:text-6xl">Romaji2Kana API</h1>
<p class="mt-6 text-lg leading-8 text-gray-600">The powerful REST API can do a lot more than the user interface and lets you integrate various conversion and validation functionalities into your own projects.</p>
</div>
<div class="mx-auto max-w-2xl mt-12 sm:mt-16">
<!-- ================================================================================ to/ divider ================================================================================ -->
<div class="flex sm:px-1">
<div class="flex items-center flex-1" aria-hidden="true">
<div class="w-full border-t border-gray-300"></div>
</div>
<div class="relative sm:bottom-1">
<span class="px-3 text-2xl font-bold tracking-tight leading-6 text-gray-900 sm:text-3xl md:text-4xl">conversion endpoints</span>
</div>
<div class="flex items-center flex-1" aria-hidden="true">
<div class="w-full border-t border-gray-300"></div>
</div>
</div>
<!-- to/kana endpoint -->
<article x-data="{ expanded: false }" class="border border-gray-300 rounded-md p-6 my-6 shadow-lg">
<!-- the upper part of the modal, that is always present -->
<div class="flex items-center gap-x-4">
<span class="font-mono font-semibold leading-6 rounded-md px-2 py-0.5 ring-1 ring-inset ring-pink-300 bg-pink-400/10 text-pink-600 shadow-md">GET</span>
<span class="font-mono text-gray-600">/v1/to/kana</span>
<svg x-on:click="expanded = !expanded" aria-label="Expands or collapses the endpoint's documentation" aria-controls="to-kana-expanded"
x-bind:aria-expanded="expanded.toString()"
class="h-7 w-7 ml-auto text-pink-600 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path x-show="!expanded" x-transition stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"/>
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"/>
</svg>
</div>
<div class="space-y-2 mt-4">
<h2 class="text-xl font-bold tracking-tight text-gray-900 leading-6">Convert input to Kana (Hiragana and/or Katakana)</h2>
<p class="text-gray-600">This endpoint allows you to convert the lowercase parts of a given input to Hiragana and the uppercase written to Katakana.</p>
</div>
<!-- the expandable part of the modal, that is hidden by default -->
<div id="to-kana-expanded" x-show="expanded" x-cloak x-collapse class="space-y-4" role="region">
<!-- put mt-4 here, because above it causes a stuttering of the collapsing close before completion -->
<div class="space-y-2 mt-4">
<h3 class="font-bold text-gray-900 leading-6">Parameters</h3>
<div class="flex items-baseline gap-x-4">
<div><code class="font-mono rounded-md text-sm bg-gray-300/10 px-4 py-1 ring-1 ring-inset ring-stone-300 shadow-md">q</code></div>
<div class="font-mono text-gray-600">string</div>
<div class="text-gray-600">The text of interest.</div>
</div>
</div>
<div class="!mt-8 !mb-6 border border-green-300 rounded-md bg-green-50/50 p-4 leading-6 text-green-900 shadow-lg">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-green-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z"
clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-green-800">Behaviour</h3>
<div class="mt-1 text-sm text-green-700">
<p>This behaves exactly like the user interface of the website, except that it differentiates between upper and lower case letters and translates to Hiragana or Katakana accordingly.</p>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Request</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="to-kana-request" class="font-mono text-gray-600 whitespace-pre overflow-x-auto md:whitespace-normal">https://api.romaji2kana.com/v1/to/kana?q=Hajimemashite. REANDA-san desu. Yoroshiku onegai shimasu.</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('to-kana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('to-kana-request')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Response</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="to-kana-response" class="font-mono text-gray-600 whitespace-pre overflow-x-auto md:whitespace-normal">{"a":"はじめまして。 レアンダーさん です。 よろしく おねがい します。"}</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('to-kana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('to-kana-response')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
</div>
</article>
<!-- to/hiragana endpoint -->
<article x-data="{ expanded: false }" class="border border-gray-300 rounded-md p-6 my-6 shadow-lg">
<!-- the upper part of the modal, that is always present -->
<div class="flex items-center gap-x-4">
<span class="font-mono font-semibold leading-6 rounded-md px-2 py-0.5 ring-1 ring-inset ring-pink-300 bg-pink-400/10 text-pink-600 shadow-md">GET</span>
<span class="font-mono text-gray-600">/v1/to/hiragana</span>
<svg x-on:click="expanded = !expanded" aria-label="Expands or collapses the endpoint's documentation" aria-controls="to-hiragana-expanded"
x-bind:aria-expanded="expanded.toString()"
class="h-7 w-7 ml-auto text-pink-600 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path x-show="!expanded" x-transition stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"/>
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"/>
</svg>
</div>
<div class="space-y-2 mt-4">
<h2 class="text-xl font-bold tracking-tight text-gray-900 leading-6">Convert input to Hiragana</h2>
<p class="text-gray-600">This endpoint allows you to convert a given input to Hiragana.</p>
</div>
<!-- the expandable part of the modal, that is hidden by default -->
<div id="to-hiragana-expanded" x-show="expanded" x-cloak x-collapse class="space-y-4" role="region">
<!-- put mt-4 here, because above it causes a stuttering of the collapsing close before completion -->
<div class="space-y-2 mt-4">
<h3 class="font-bold text-gray-900 leading-6">Parameters</h3>
<div class="flex items-baseline gap-x-4">
<div><code class="font-mono rounded-md text-sm bg-gray-300/10 px-4 py-1 ring-1 ring-inset ring-stone-300 shadow-md">q</code></div>
<div class="font-mono text-gray-600">string</div>
<div class="text-gray-600">The text of interest.</div>
</div>
</div>
<div class="!mt-8 !mb-6 border border-green-300 rounded-md bg-green-50/50 p-4 leading-6 text-green-900 shadow-lg">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-green-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z"
clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-green-800">Behaviour</h3>
<div class="mt-1 text-sm text-green-700">
<p>This behaves exactly like the user interface of the website.</p>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Request</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="to-hiragana-request" class="font-mono text-gray-600 whitespace-pre overflow-x-auto md:whitespace-normal">https://api.romaji2kana.com/v1/to/hiragana?q=Ohayou gozaimasu.</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('to-hiragana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('to-hiragana-request')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Response</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="to-hiragana-response" class="font-mono text-gray-600 whitespace-pre overflow-x-auto md:whitespace-normal">{"a":"おはよう ございます。"}</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('to-hiragana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('to-hiragana-response')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
</div>
</article>
<!-- to/katakana endpoint -->
<article x-data="{ expanded: false }" class="border border-gray-300 rounded-md p-6 my-6 shadow-lg">
<!-- the upper part of the modal, that is always present -->
<div class="flex items-center gap-x-4">
<span class="font-mono font-semibold leading-6 rounded-md px-2 py-0.5 ring-1 ring-inset ring-pink-300 bg-pink-400/10 text-pink-600 shadow-md">GET</span>
<span class="font-mono text-gray-600">/v1/to/katakana</span>
<svg x-on:click="expanded = !expanded" aria-label="Expands or collapses the endpoint's documentation" aria-controls="to-katakana-expanded"
x-bind:aria-expanded="expanded.toString()"
class="h-7 w-7 ml-auto text-pink-600 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path x-show="!expanded" x-transition stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"/>
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"/>
</svg>
</div>
<div class="space-y-2 mt-4">
<h2 class="text-xl font-bold tracking-tight text-gray-900 leading-6">Convert input to Katakana</h2>
<p class="text-gray-600">This endpoint allows you to convert a given input to Katakana.</p>
</div>
<!-- the expandable part of the modal, that is hidden by default -->
<div id="to-katakana-expanded" x-show="expanded" x-cloak x-collapse class="space-y-4" role="region">
<!-- put mt-4 here, because above it causes a stuttering of the collapsing close before completion -->
<div class="space-y-2 mt-4">
<h3 class="font-bold text-gray-900 leading-6">Parameters</h3>
<div class="flex items-baseline gap-x-4">
<div><code class="font-mono rounded-md text-sm bg-gray-300/10 px-4 py-1 ring-1 ring-inset ring-stone-300 shadow-md">q</code></div>
<div class="font-mono text-gray-600">string</div>
<div class="text-gray-600">The text of interest.</div>
</div>
</div>
<div class="!mt-8 !mb-6 border border-green-300 rounded-md bg-green-50/50 p-4 leading-6 text-green-900 shadow-lg">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-green-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z"
clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-green-800">Behaviour</h3>
<div class="mt-1 text-sm text-green-700">
<p>This behaves exactly like the user interface of the website.</p>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Request</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="to-katakana-request" class="font-mono text-gray-600 whitespace-pre overflow-x-auto md:whitespace-normal">https://api.romaji2kana.com/v1/to/katakana?q=aisukuri-mu</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('to-katakana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('to-katakana-request')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Response</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="to-katakana-response" class="font-mono text-gray-600 whitespace-pre overflow-x-auto md:whitespace-normal">{"a":"アイスクリーム"}</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('to-katakana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('to-katakana-response')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
</div>
</article>
<!-- to/romaji endpoint -->
<article x-data="{ expanded: false }" class="border border-gray-300 rounded-md p-6 my-6 shadow-lg">
<!-- the upper part of the modal, that is always present -->
<div class="flex items-center gap-x-4">
<span class="font-mono font-semibold leading-6 rounded-md px-2 py-0.5 ring-1 ring-inset ring-pink-300 bg-pink-400/10 text-pink-600 shadow-md">GET</span>
<span class="font-mono text-gray-600">/v1/to/romaji</span>
<svg x-on:click="expanded = !expanded" aria-label="Expands or collapses the endpoint's documentation" aria-controls="to-romaji-expanded"
x-bind:aria-expanded="expanded.toString()"
class="h-7 w-7 ml-auto text-pink-600 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path x-show="!expanded" x-transition stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"/>
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"/>
</svg>
</div>
<div class="space-y-2 mt-4">
<h2 class="text-xl font-bold tracking-tight text-gray-900 leading-6">Convert input to Romaji</h2>
<p class="text-gray-600">This endpoint allows you to convert a given input to Romaji.</p>
</div>
<!-- the expandable part of the modal, that is hidden by default -->
<div id="to-romaji-expanded" x-show="expanded" x-cloak x-collapse class="space-y-4" role="region">
<!-- put mt-4 here, because above it causes a stuttering of the collapsing close before completion -->
<div class="space-y-2 mt-4">
<h3 class="font-bold text-gray-900 leading-6">Parameters</h3>
<div class="flex items-baseline gap-x-4">
<div><code class="font-mono rounded-md text-sm bg-gray-300/10 px-4 py-1 ring-1 ring-inset ring-stone-300 shadow-md">q</code></div>
<div class="font-mono text-gray-600">string</div>
<div class="text-gray-600">The text of interest.</div>
</div>
</div>
<div class="!mt-8 !mb-6 border border-green-300 rounded-md bg-green-50/50 p-4 leading-6 text-green-900 shadow-lg">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-green-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z"
clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-green-800">Behaviour</h3>
<div class="mt-1 text-sm text-green-700">
<p>This behaves exactly like the user interface of the website, except that it converts Hiragana and Katakana alike - they may both be contained in the input.</p>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Request</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="to-romaji-request" class="font-mono text-gray-600 whitespace-pre overflow-x-auto md:whitespace-normal">https://api.romaji2kana.com/v1/to/romaji?q=りんごと オレンジを かって ください。</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('to-romaji-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('to-romaji-request')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Response</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="to-romaji-response" class="font-mono text-gray-600 whitespace-pre overflow-x-auto md:whitespace-normal">{"a":"ringoto orenjiwo katte kudasai."}</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('to-romaji-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('to-romaji-response')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
</div>
</article>
<!-- ================================================================================ is/ divider ================================================================================ -->
<div class="flex mt-12 sm:mt-16 sm:px-1">
<div class="flex items-center flex-1" aria-hidden="true">
<div class="w-full border-t border-gray-300"></div>
</div>
<div class="relative sm:bottom-1">
<span class="px-3 text-2xl font-bold tracking-tight leading-6 text-gray-900 sm:text-3xl md:text-4xl">validation endpoints</span>
</div>
<div class="flex items-center flex-1" aria-hidden="true">
<div class="w-full border-t border-gray-300"></div>
</div>
</div>
<!-- is/japanese endpoint -->
<article x-data="{ expanded: false }" class="border border-gray-300 rounded-md p-6 my-6 shadow-lg">
<!-- the upper part of the modal, that is always present -->
<div class="flex items-center gap-x-4">
<span class="font-mono font-semibold leading-6 rounded-md px-2 py-0.5 ring-1 ring-inset ring-pink-300 bg-pink-400/10 text-pink-600 shadow-md">GET</span>
<span class="font-mono text-gray-600">/v1/is/japanese</span>
<svg x-on:click="expanded = !expanded" aria-label="Expands or collapses the endpoint's documentation" aria-controls="is-japanese-expanded"
x-bind:aria-expanded="expanded.toString()"
class="h-7 w-7 ml-auto text-pink-600 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path x-show="!expanded" x-transition stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"/>
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"/>
</svg>
</div>
<div class="space-y-2 mt-4">
<h2 class="text-xl font-bold tracking-tight text-gray-900 leading-6">Test if input is Japanese</h2>
<p class="text-gray-600">This endpoint allows you to check if a given input includes only Kanji, Kana, zenkaku numbers and Japanese punctuation marks.</p>
</div>
<!-- the expandable part of the modal, that is hidden by default -->
<div id="is-japanese-expanded" x-show="expanded" x-cloak x-collapse class="space-y-4" role="region">
<!-- put mt-4 here, because above it causes a stuttering of the collapsing close before completion -->
<div class="space-y-2 mt-4">
<h3 class="font-bold text-gray-900 leading-6">Parameters</h3>
<div class="flex items-baseline gap-x-4">
<div><code class="font-mono rounded-md text-sm bg-gray-300/10 px-4 py-1 ring-1 ring-inset ring-stone-300 shadow-md">q</code></div>
<div class="font-mono text-gray-600">string</div>
<div class="text-gray-600">The text of interest.</div>
</div>
</div>
<div class="!mt-8 !mb-6 border border-yellow-300 rounded-md bg-yellow-50/50 p-4 leading-6 text-yellow-900 shadow-lg">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-yellow-500" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"
clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-yellow-800">Attention</h3>
<div class="mt-1 text-sm text-yellow-700">
<p>Japanese does not use any spaces.</p>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Request</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="is-japanese-request" class="font-mono text-gray-600 whitespace-pre overflow-x-auto">https://api.romaji2kana.com/v1/is/japanese?q=お元気ですか?</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('is-japanese-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('is-japanese-request')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Response</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="is-japanese-response" class="font-mono text-gray-600 whitespace-pre overflow-x-auto">{"a":true}</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('is-japanese-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('is-japanese-response')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
</div>
</article>
<!-- is/kana endpoint -->
<article x-data="{ expanded: false }" class="border border-gray-300 rounded-md p-6 my-6 shadow-lg">
<!-- the upper part of the modal, that is always present -->
<div class="flex items-center gap-x-4">
<span class="font-mono font-semibold leading-6 rounded-md px-2 py-0.5 ring-1 ring-inset ring-pink-300 bg-pink-400/10 text-pink-600 shadow-md">GET</span>
<span class="font-mono text-gray-600">/v1/is/kana</span>
<svg x-on:click="expanded = !expanded" aria-label="Expands or collapses the endpoint's documentation" aria-controls="is-kana-expanded"
x-bind:aria-expanded="expanded.toString()"
class="h-7 w-7 ml-auto text-pink-600 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path x-show="!expanded" x-transition stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"/>
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"/>
</svg>
</div>
<div class="space-y-2 mt-4">
<h2 class="text-xl font-bold tracking-tight text-gray-900 leading-6">Test if input is Kana (Hiragana and/or Katakana)</h2>
<p class="text-gray-600">This endpoint allows you to check if a given input includes only Hiragana or Katakana characters.</p>
</div>
<!-- the expandable part of the modal, that is hidden by default -->
<div id="is-kana-expanded" x-show="expanded" x-cloak x-collapse class="space-y-4" role="region">
<!-- put mt-4 here, because above it causes a stuttering of the collapsing close before completion -->
<div class="space-y-2 mt-4">
<h3 class="font-bold text-gray-900 leading-6">Parameters</h3>
<div class="flex items-baseline gap-x-4">
<div><code class="font-mono rounded-md text-sm bg-gray-300/10 px-4 py-1 ring-1 ring-inset ring-stone-300 shadow-md">q</code></div>
<div class="font-mono text-gray-600">string</div>
<div class="text-gray-600">The text of interest.</div>
</div>
</div>
<div class="!mt-8 !mb-6 border border-yellow-300 rounded-md bg-yellow-50/50 p-4 leading-6 text-yellow-900 shadow-lg">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-yellow-500" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"
clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-yellow-800">Attention</h3>
<div class="mt-1 text-sm text-yellow-700">
<p>Spaces or punctuation marks are not allowed - only Kana.</p>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Request</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="is-kana-request" class="font-mono text-gray-600 whitespace-pre overflow-x-auto">https://api.romaji2kana.com/v1/is/kana?q=アメリカじん</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('is-kana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('is-kana-request')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Response</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="is-kana-response" class="font-mono text-gray-600 whitespace-pre overflow-x-auto">{"a":true}</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('is-kana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('is-kana-response')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
</div>
</article>
<!-- is/hiragana endpoint -->
<article x-data="{ expanded: false }" class="border border-gray-300 rounded-md p-6 my-6 shadow-lg">
<!-- the upper part of the modal, that is always present -->
<div class="flex items-center gap-x-4">
<span class="font-mono font-semibold leading-6 rounded-md px-2 py-0.5 ring-1 ring-inset ring-pink-300 bg-pink-400/10 text-pink-600 shadow-md">GET</span>
<span class="font-mono text-gray-600">/v1/is/hiragana</span>
<svg x-on:click="expanded = !expanded" aria-label="Expands or collapses the endpoint's documentation" aria-controls="is-hiragana-expanded"
x-bind:aria-expanded="expanded.toString()"
class="h-7 w-7 ml-auto text-pink-600 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path x-show="!expanded" x-transition stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"/>
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"/>
</svg>
</div>
<div class="space-y-2 mt-4">
<h2 class="text-xl font-bold tracking-tight text-gray-900 leading-6">Test if input is Hiragana</h2>
<p class="text-gray-600">This endpoint allows you to check if a given input includes only Hiragana characters.</p>
</div>
<!-- the expandable part of the modal, that is hidden by default -->
<div id="is-hiragana-expanded" x-show="expanded" x-cloak x-collapse class="space-y-4" role="region">
<!-- put mt-4 here, because above it causes a stuttering of the collapsing close before completion -->
<div class="space-y-2 mt-4">
<h3 class="font-bold text-gray-900 leading-6">Parameters</h3>
<div class="flex items-baseline gap-x-4">
<div><code class="font-mono rounded-md text-sm bg-gray-300/10 px-4 py-1 ring-1 ring-inset ring-stone-300 shadow-md">q</code></div>
<div class="font-mono text-gray-600">string</div>
<div class="text-gray-600">The text of interest.</div>
</div>
</div>
<div class="!mt-8 !mb-6 border border-yellow-300 rounded-md bg-yellow-50/50 p-4 leading-6 text-yellow-900 shadow-lg">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-yellow-500" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"
clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-yellow-800">Attention</h3>
<div class="mt-1 text-sm text-yellow-700">
<p>Spaces or punctuation marks are not allowed - only Hiragana.</p>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Request</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="is-hiragana-request" class="font-mono text-gray-600 whitespace-pre overflow-x-auto">https://api.romaji2kana.com/v1/is/hiragana?q=ゆうびんきょく</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('is-hiragana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('is-hiragana-request')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Response</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="is-hiragana-response" class="font-mono text-gray-600 whitespace-pre overflow-x-auto">{"a":true}</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('is-hiragana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('is-hiragana-response')" aria-label="Copy API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-gray-400">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
</button>
<!-- Copied button (checkmark icon) -->
<button x-show="copied" x-cloak aria-label="Successfully copied API request to clipboard">
<svg viewBox="0 0 16 16" fill="currentColor" class="h-4 w-4 m-2 text-pink-600">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</button>
</div>
<div x-show="copied" x-cloak class="absolute bottom-full left-1/2 -translate-x-1/2 md:bottom-auto md:translate-x-0 md:left-full md:top-1/2 md:-translate-y-1/2 flex flex-col-reverse md:flex-row items-center">
<div class="border-solid bg-pink-600 -rotate-45 h-2 w-2 -mt-1.5 mb-1 md:mb-0 md:mt-0 md:ml-0.5 md:-mr-1.5"></div>
<div class="text-xs bg-pink-600 text-white rounded-md px-2 py-1">
Copied!
</div>
</div>
</div>
</div>
</div>
</div>
</article>
<!-- is/katakana endpoint -->
<article x-data="{ expanded: false }" class="border border-gray-300 rounded-md p-6 my-6 shadow-lg">
<!-- the upper part of the modal, that is always present -->
<div class="flex items-center gap-x-4">
<span class="font-mono font-semibold leading-6 rounded-md px-2 py-0.5 ring-1 ring-inset ring-pink-300 bg-pink-400/10 text-pink-600 shadow-md">GET</span>
<span class="font-mono text-gray-600">/v1/is/katakana</span>
<svg x-on:click="expanded = !expanded" aria-label="Expands or collapses the endpoint's documentation" aria-controls="is-katakana-expanded"
x-bind:aria-expanded="expanded.toString()"
class="h-7 w-7 ml-auto text-pink-600 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path x-show="!expanded" x-transition stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"/>
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"/>
</svg>
</div>
<div class="space-y-2 mt-4">
<h2 class="text-xl font-bold tracking-tight text-gray-900 leading-6">Test if input is Katakana</h2>
<p class="text-gray-600">This endpoint allows you to check if a given input includes only Katakana characters.</p>
</div>
<!-- the expandable part of the modal, that is hidden by default -->
<div id="is-katakana-expanded" x-show="expanded" x-cloak x-collapse class="space-y-4" role="region">
<!-- put mt-4 here, because above it causes a stuttering of the collapsing close before completion -->
<div class="space-y-2 mt-4">
<h3 class="font-bold text-gray-900 leading-6">Parameters</h3>
<div class="flex items-baseline gap-x-4">
<div><code class="font-mono rounded-md text-sm bg-gray-300/10 px-4 py-1 ring-1 ring-inset ring-stone-300 shadow-md">q</code></div>
<div class="font-mono text-gray-600">string</div>
<div class="text-gray-600">The text of interest.</div>
</div>
</div>
<div class="!mt-8 !mb-6 border border-yellow-300 rounded-md bg-yellow-50/50 p-4 leading-6 text-yellow-900 shadow-lg">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-yellow-500" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"
clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-yellow-800">Attention</h3>
<div class="mt-1 text-sm text-yellow-700">
<p>Spaces or punctuation marks are not allowed - only Katakana.</p>
</div>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="font-bold text-gray-900 leading-6">Request</h3>
<div class="relative flex items-center justify-between border border-gray-300 rounded-md bg-gray-300/10 pl-4 pr-2 py-2 leading-6 text-gray-900 shadow-lg">
<code id="is-katakana-request" class="font-mono text-gray-600 whitespace-pre overflow-x-auto">https://api.romaji2kana.com/v1/is/katakana?q=アイスクリーム</code>
<div x-data="{ copied: false }" class="relative h-8 ml-1 self-end flex justify-end items-center gap-x-0.5">
<div x-bind:class="!copied ? 'border-gray-300' : 'border-pink-600'"
class="h-8 w-8 flex justify-center items-center border rounded-md">
<!-- Copy button (duplicate icon) -->
<button x-show="!copied" x-on:click="setOverflowVisible('is-katakana-expanded'); copied = true; setTimeout(() => copied = false, 2000); copyToClipboard('is-katakana-request')" aria-label="Copy API request to clipboard">