Skip to content

Instantly share code, notes, and snippets.

@naoyashiga
Created October 23, 2022 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naoyashiga/debe0f9e4f0073c3fb089271a1de2c84 to your computer and use it in GitHub Desktop.
Save naoyashiga/debe0f9e4f0073c3fb089271a1de2c84 to your computer and use it in GitHub Desktop.
オノマトペ一覧取得
"""
雑です。日本語として成立していないものも出力されます。
5600個くらい出ます。
"""
excludes = 'ぁぃぅぇぉゔゕゖゐゑゎ'
hiragana = [chr(i) for i in range(ord("ぁ"), ord("ゖ")+1) if chr(i) not in excludes]
print("".join(hiragana))
count = 1
for first in hiragana:
for second in hiragana:
print(f'{count}:{first}{second}{first}{second}')
count = count + 1
@naoyashiga
Copy link
Author

出力例

2512:でなでな
2513:でにでに
2514:でぬでぬ
2515:でねでね
2516:でのでの
2517:ではでは
2518:でばでば
2519:でぱでぱ
2520:でひでひ
2521:でびでび
2522:でぴでぴ
2523:でふでふ
2524:でぶでぶ
2525:でぷでぷ
2526:でへでへ
2527:でべでべ
2528:でぺでぺ
2529:でほでほ
2530:でぼでぼ
2531:でぽでぽ
2532:でまでま
2533:でみでみ
2534:でむでむ
2535:でめでめ
2536:でもでも
2537:でゃでゃ
2538:でやでや
2539:でゅでゅ
2540:でゆでゆ
2541:でょでょ
2542:でよでよ
2543:でらでら
2544:でりでり
2545:でるでる
2546:でれでれ
2547:でろでろ
2548:でわでわ
2549:でをでを
2550:でんでん

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment