テキスト
Word/Character Frequency Counter
テキストの頻度分析:各単語・文字が出現する回数を、回数順にソートして表示。
This tool counts how many times each word or character appears in a text and sorts the result by count — something that's practically impossible to tally by hand in a long piece of text.
How to use it
- Choose what to analyze — words or individual characters.
- Paste text and a frequency table appears instantly, sorted from most to least common.
- Handy for instantly spotting the most common word or character in a large block of text.
Common uses
- Finding keywords in an article or document for a basic SEO check without dedicated tools.
- A teaching example of frequency analysis when learning cryptography basics or natural language processing.
- Checking a text for excessive repetition of certain words before publishing.
Things to keep in mind
Frequency analysis is case-sensitive by default in many implementations — "Word" and "word" can count as different entries unless the text is normalized to one case first.
Classical substitution ciphers (ROT13, the Caesar cipher) don't change the frequency distribution of letters, only the mapping — which is exactly why frequency analysis is the classic way to break them without trying every key.
よくある質問
単語モードと文字モードの違いは何ですか?
単語モードはテキスト内で各単語が何回出現するかを数え、文字モードは句読点を含む各個別文字の出現をカウントします。
「大文字小文字を区別しない」と「スペースを無視」オプションは何をしますか?
「大文字小文字を区別しない」は大文字・小文字のみが異なる出現をマージし、「スペースを無視」は文字モードのカウントからスペースを除外します。結果はその後、出現回数の降順でソートされます。
分析されたテキストはサーバーに送信されますか?
いいえ、頻度分析はブラウザ内で完全にJavaScriptで実行されます — オンラインには何も送信されません。
ジップの法則とは何ですか?
自然言語では、単語の出現頻度は頻度による順位に反比例します — 最も頻繁な単語は2番目のおよそ2倍、3番目のおよそ3倍出現します。この規則性からの大きな逸脱は、テキストが人工的に生成されたものか、キーワードスパムである可能性を示すシグナルです。
頻度分析を使って単純な暗号を解読できますか?
はい、ROT13やシーザー暗号のような古典的な換字式暗号では、文字の頻度分布自体は変わらず、対応関係が入れ替わるだけです。暗号化されたテキストの頻度分布を元の言語の既知の分布と比較すれば、すべての鍵を試すことなく文字の対応関係を復元できます。