0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

漱石・賢治・太宰から日本語ダミーテキストを生成するツールを作った

0
Posted at

作ったもの

Lorem JPhttps://sen.ltd/portfolio/lorem-jp/

スクリーンショット

  • 5 作品: 吾輩は猫である / 銀河鉄道の夜 / 走れメロス / 羅生門 / 堕落論
  • 段落(1-10) / 文(1-50) / 文字数(10-5000) 指定
  • フォントプレビュー(明朝 / ゴシック / 等幅)
  • ワンクリックコピー

vanilla JS、ゼロ依存、ビルド不要node --test で 34 ケース。

なぜランダム文字列ではなく文学作品か

ランダムなひらがな文字列は、実際の日本語テキストの行折り返し・文字幅分布・句読点リズムを再現しない。漢字かな混じり文には固有の密度がある。フォント確認やレイアウトテストには本物の文章が必要。

5 作品はすべてパブリックドメイン(著者の没後 70 年以上経過)。文体も全く異なるので、異なるテキスト密度のテストに使える。

シリーズ

100+ 公開ポートフォリオ シリーズの #42 です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?