Pokemon-Name-Physique-Analysis

Pokémon Name & Physique Analysis

An R-based exploration of Pokémon names (English & Japanese) and their physical attributes. We use string‐pattern queries to characterize name structure, test for relationships between phonetic features and weight, and build regression models predicting weight from height and Attack power.


Table of Contents

  1. Project Overview
  2. Features & Analyses
  3. Prerequisites
  4. Installation
  5. Usage
  6. Script Breakdown
  7. Key Findings
  8. Extending & Customizing
  9. Data Source & Citations
  10. License

Project Overview

We analyze the pokemon-advanced.csv dataset (1,008 Pokémon) to:


Features & Analyses

  1. Name‐pattern extraction via stringr::str_detect:
    • Two identical vowels: "(aa|ee|ii|oo|uu)"
    • Three+ consonants: "[^aeiouAEIOU]{3,}"
    • Four+ alternating C–V or V–C: "(?:[aeiou][^aeiou]){4,}|(?:[^aeiou][aeiou]){4,}"
    • Starts vowel, ends consonant: "^[aeiou].*[^aeiou]$"
  2. Group comparisons:
    • With vs. without “heavy” consonants in English names → t-test of weight.
    • Same grouping for Japanese names.
  3. Regression modeling:
    • Model 1: Weight ~ Height
    • Model 2: Weight ~ Height + Attack
    • Compare R² and predictor significance.

All results (console output, plots if any) are produced by pokemon_name_physique_analysis.R.


Prerequisites

R Packages

The script auto-installs missing packages.


Installation

  1. Clone this repository:
    git clone https://github.com/yourusername/pokemon-name-physique.git
    cd pokemon-name-physique
    
  2. Ensure pokemon-advanced.csv is placed in the project root.

Usage

Run the analysis script in R:

# From R or RStudio:
setwd("path/to/pokemon-name-physique")
source("pokemon_name_physique_analysis.R")

The script will print:


Script Breakdown

library(stringr)
pokemon <- read.csv("pokemon-advanced.csv")
names   <- pokemon$Name..English.
jpn     <- pokemon$Name..Japanese.

# 2a–2d: str_detect subsets for various patterns
# 4: group_by heavy consonants → t.test(weights_with, weights_without)
# 6–8: lm(Weight ~ Height), lm(Weight ~ Height + Attack)

Each step prints results to the console.


Key Findings


Extending & Customizing


Data Source & Citations


License

This project is released under the MIT License. See LICENSE for details.