# bryzmcln/word-frequency-counter architecture

> Architecture diagram of the GitHub repository bryzmcln/word-frequency-counter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bryzmcln/word-frequency-counter
- Repository: https://github.com/bryzmcln/word-frequency-counter

## Overview

##### Project type and purpose
- This is a simple full-stack PHP web application whose sole purpose is to accept a block of text from a user, strip out stopwords, count word frequencies, and display the results.

##### File structure
- Top-level:
- Practice_Set_01/index.php – likely a predecessor or sample.
- Practice_Set_02/index.php – the production entry point (HTML form + client UI).
- Practice_Set_02/process.php – server-side logic that parses input, filters stopwords, tallies frequencies.
- Practice_Set_02/styles.css – presentation layer for the form and results.
- README.md – project description and stopword source.

##### README for additional insights
- Confirms it’s a “Word Frequency Counter.”
- No database—stopwords come from an external list (linked URL).
- No mention of JavaScript frameworks, so the architecture remains purely server-rendered.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Client Layer"
        Browser["Browser / UI"]:::client
        Index["index.php (Form Handler)"]:::client
        Styles["styles.css"]:::client
    end

    subgraph "Server Layer"
        Proc["process.php (Controller)"]:::server
        subgraph "Processing Engine"
            Filter["Stopword Filter"]:::server
            Counter["Frequency Counter"]:::server
        end
    end

    subgraph "External Resources"
        Stopwords["Stopword Resource"]:::external
        Readme["README.md"]:::external
        Prev["Practice_Set_01/index.php"]:::external
    end

    Browser -->|"GET form"| Index
    Browser -->|"load CSS"| Styles
    Index -->|"POST text"| Proc
    Proc -->|"fetch stopwords"| Stopwords
    Proc -->|"invoke filter"| Filter
    Filter -->|"filtered text"| Counter
    Counter -->|"word counts"| Proc
    Proc -->|"HTML response"| Browser

    click Browser "https://github.com/bryzmcln/word-frequency-counter/blob/master/Practice_Set_02/index.php"
    click Index "https://github.com/bryzmcln/word-frequency-counter/blob/master/Practice_Set_02/index.php"
    click Proc "https://github.com/bryzmcln/word-frequency-counter/blob/master/Practice_Set_02/process.php"
    click Filter "https://github.com/bryzmcln/word-frequency-counter/blob/master/Practice_Set_02/process.php"
    click Counter "https://github.com/bryzmcln/word-frequency-counter/blob/master/Practice_Set_02/process.php"
    click Styles "https://github.com/bryzmcln/word-frequency-counter/blob/master/Practice_Set_02/styles.css"
    click Readme "https://github.com/bryzmcln/word-frequency-counter/blob/master/README.md"
    click Prev "https://github.com/bryzmcln/word-frequency-counter/blob/master/Practice_Set_01/index.php"

    classDef client fill:#ADD8E6,stroke:#000,color:#000
    classDef server fill:#90EE90,stroke:#000,color:#000
    classDef external fill:#fff5ba,stroke:#000,color:#000
```
