Skip to content

Aditya-Giri-4356/Swift_type.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

swift_type.

An AI-powered 15-second typing test website that adapts to your skill level and provides personalized training.

swift_type logo

πŸš€ Try it now! - Choose between AI-powered v2.0.0 or Classic v1.0.0

Version

v2.0.0

πŸš€ New AI-Powered Features

Intelligent Text Generation

  • Internet-Based Content: Fetches random text from multiple APIs (quotes, jokes, facts)
  • Smart Fallback System: Generates intelligent fallback text when APIs are unavailable
  • Dynamic Content: Never runs out of fresh, engaging text to type

AI Difficulty Analysis

  • Adaptive Learning: Analyzes your performance and adjusts difficulty automatically
  • Word Complexity Scoring: Evaluates words based on length, character complexity, and patterns
  • Progressive Difficulty: Starts easy and scales up as you improve

Personalized Training

  • Weak Key Detection: Identifies keys you struggle with and includes them more frequently
  • Error Pattern Analysis: Tracks your typing mistakes to provide targeted practice
  • Performance History: Maintains detailed history of your last 10 tests

Smart Content Curation

  • Difficulty-Based Word Selection:
    • Easy: Common words (the, and, for, etc.)
    • Medium: Intermediate vocabulary (about, through, etc.)
    • Hard: Complex words (sophisticated, revolutionary, etc.)
  • Personalized Sentences: 30% chance to include words with your weak keys
  • Optimal Length: Adjusts sentence length based on your skill level

Core Features

  • 15-Second Typing Test: Quick and efficient way to measure typing speed
  • Real-time Statistics:
    • Words Per Minute (WPM)
    • Accuracy Percentage
  • Dynamic Keyboard Visualization:
    • Real-time key highlighting
    • Three keyboard styles:
      • Round (default)
      • Square
      • Bordered
  • Smooth Text Display:
    • Three-line text display
    • Automatic text progression
    • Smooth fade transitions
    • Cursor tracking
  • Advanced Error Handling:
    • Real-time error highlighting
    • Backspace support
    • Detailed accuracy calculation
    • Error pattern tracking

Technologies Used

  • HTML5
  • CSS3
  • Vanilla JavaScript
  • AI-Powered Text Generation
  • Multiple REST APIs for content
  • Google Fonts:
    • League Spartan
    • Roboto

How the AI Works

Performance Tracking

  1. Initial Assessment: Starts with easy words to gauge your skill level
  2. Continuous Monitoring: Tracks every keystroke, error, and timing
  3. Pattern Recognition: Identifies which keys and word patterns you struggle with
  4. Adaptive Response: Adjusts difficulty and content based on your performance

Difficulty Scaling

  • Level 1-2: Easy words, short sentences (beginners)
  • Level 3-4: Medium complexity, balanced content (intermediate)
  • Level 5: Hard words, complex sentences (advanced)

Smart Content Generation

  • API Integration: Fetches fresh content from multiple sources
  • Fallback Intelligence: Generates contextually appropriate text when APIs fail
  • Personalization: Includes words with your weak keys for targeted practice

Usage

  1. Open the website in a browser
  2. Press any key to start typing
  3. The AI will analyze your performance in real-time
  4. Type the displayed text as accurately as possible
  5. The system learns from your mistakes and adjusts accordingly
  6. View your WPM and accuracy results after 15 seconds
  7. Press TAB to restart with new AI-generated content
  8. Watch as the difficulty adapts to your skill level over multiple tests

Keyboard Customization

Toggle between three keyboard styles using the buttons in the top-right corner:

  • Round: Circular keys (default)
  • Square: Square keys with rounded corners
  • Bordered: Outlined keys with transparent background

Design Features

  • Minimalist black and white design
  • Smooth animations and transitions
  • Responsive layout
  • Custom cursor animation
  • Dynamic text fading
  • Clean result display
  • AI-powered adaptive interface

API Sources

The AI system fetches content from these free APIs:

  • Quotable.io: Inspirational quotes
  • ZenQuotes.io: Motivational quotes
  • Kanye.rest: Random Kanye West quotes
  • Chuck Norris API: Chuck Norris jokes

Note: If APIs are unavailable, the system automatically generates intelligent fallback content.

Performance Benefits

For Beginners

  • Starts with simple, common words
  • Gradually introduces complexity
  • Focuses on building confidence

For Intermediate Users

  • Balanced mix of easy and challenging content
  • Identifies specific weak areas
  • Provides targeted practice

For Advanced Typists

  • Complex vocabulary and sentence structures
  • Challenging word combinations
  • Continuous skill refinement

🎯 Start Here - Version Selector

Choose your preferred typing experience:

The version selector lets you easily choose between:

  • v2.0.0 (AI-Powered): Intelligent text generation, adaptive difficulty, personalized training
  • v1.0.0 (Classic): Original minimalist design with static content

Direct Access Links

AI-Powered Version (Recommended)

Classic Version

Installation

  1. Clone the repository
  2. Place files in your web server directory
  3. Ensure all files are in the following structure:
    your-website/
    β”œβ”€β”€ index.html (v2.0.0 - AI-powered)
    β”œβ”€β”€ swifttypefavicon.png
    β”œβ”€β”€ README.md
    └── versions/
        β”œβ”€β”€ index.html (version selector)
        β”œβ”€β”€ v1.0.0/
        β”‚   β”œβ”€β”€ index.html
        β”‚   β”œβ”€β”€ README.md
        β”‚   └── swifttypefavicon.png
        └── v2.0.0/
            β”œβ”€β”€ index.html
            β”œβ”€β”€ README.md
            └── swifttypefavicon.png
    

Browser Support

  • Chrome (recommended)
  • Firefox
  • Safari
  • Edge
  • Any modern browser with JavaScript enabled

Credits

  • Fonts: Google Fonts (League Spartan, Roboto)
  • APIs: Quotable.io, ZenQuotes.io, Kanye.rest, Chuck Norris API
  • Design: Minimalist, user-focused interface
  • AI Logic: Custom-built adaptive learning system

Quick Start

🎯 Visit the Version Selector to choose your preferred experience!

License

MIT License - Feel free to use and modify for your projects.

Changelog

v2.0.0 (Latest)

  • ✨ Added AI-powered text generation from internet sources
  • 🧠 Implemented adaptive difficulty system
  • πŸ“Š Added performance tracking and analysis
  • 🎯 Introduced personalized training with weak key detection
  • πŸ”„ Enhanced with smart fallback content generation
  • πŸ“ˆ Added progressive difficulty scaling
  • 🎨 Updated UI to reflect AI capabilities

v1.0.0

  • πŸŽ‰ Initial release
  • ⚑ 15-second typing test
  • ⌨️ Dynamic keyboard visualization
  • πŸ“± Responsive design
  • 🎨 Three keyboard styles
  • πŸ“Š Real-time statistics

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages