{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "a1b2c3d4",
   "metadata": {},
   "source": [
    "# Ch07 Lab — Text Analysis with Dictionaries"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b2c3d4e5",
   "metadata": {},
   "source": [
    "## Overview\n",
    "\n",
    "In this lab you will analyze a text file using dictionaries and `Counter` to answer questions about word usage."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c3d4e5f6",
   "metadata": {},
   "source": [
    "## Part 1 — Load and Clean *(recall)*\n",
    "\n",
    "Load any plain-text file (e.g. a Project Gutenberg book) and build a cleaned word frequency dictionary: lowercase, strip punctuation, exclude words shorter than 3 characters."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d4e5f6a7",
   "metadata": {},
   "outputs": [],
   "source": [
    "# Your solution here\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e5f6a7b8",
   "metadata": {},
   "source": [
    "## Part 2 — Top Words *(application)*\n",
    "\n",
    "Use `Counter` to find the 10 most common words. Display them as a table (word, count)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f6a7b8c9",
   "metadata": {},
   "outputs": [],
   "source": [
    "# Your solution here\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a7b8c9d0",
   "metadata": {},
   "source": [
    "## Part 3 — Word Length Groups *(extension)*\n",
    "\n",
    "Build a dictionary that groups words by length. Report:\n",
    "- The number of words in each length group\n",
    "- The five most common word lengths\n",
    "- One example word from each of the five most common groups"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b8c9d0e1",
   "metadata": {},
   "outputs": [],
   "source": [
    "# Your solution here\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "name": "python",
   "version": "3.11.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
