File size: 1,627 Bytes
b27bfb3 | 1 2 3 4 5 | {"type": "session", "harness": "deepseek-harness", "id": "eng-0001", "name": "English word frequency analysis"}
{"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}}
{"type": "message", "message": {"role": "user", "content": "How does word frequency work in English?"}}
{"type": "message", "message": {"role": "assistant", "content": "Word frequency follows Zipf's Law:\n- The most common word appears ~twice as often as the second\n- The third appears ~1/3 as often as the first\n- Rank n word appears ~1/n as often as the most common\n\nFrequency tiers (per million words):\n- 10,000+: the (69,863), of (36,411), and (28,852)\n- 1,000-10,000: system (247), data (223), user (198)\n- 100-1,000: algorithm (12), protocol (8), encryption (3)\n- 10-100: protobuf (0.8), kubernetes (0.5), websocket (0.3)\n- 1-10: denormalization (0.08), pseudorandom (0.03)\n\nPractical applications:\n- Language learning: prioritize high-frequency words\n- Search engines: stop word removal\n- Text compression: Huffman coding\n- Spell checkers: suggest corrections\n- Machine translation: alignment\n\nCorpus sources:\n- Google Books Ngram Viewer\n- COCA (Corpus of Contemporary American English)\n- BNC (British National Corpus)\n- Common Crawl (web text)\n"}}
|