Skip to content

๐ŸŒ GlotBase - A modern web app for building constructed languages (conlangs). Features: multi-script support, affix calculator, export/import, and real-time statistics. Perfect for Austronesian-inspired languages with complex morphology.

Notifications You must be signed in to change notification settings

thvtzy/Glotbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GlotBase - Conlang Builder & Archive

GlotBase is a modern web application for building and documenting constructed languages (conlangs). Designed specifically to accommodate complex language systems with multi-script support, flexible word orders, and advanced morphology.

Status React TypeScript Vite


โœจ Key Features

๐Ÿ“Š Dashboard

Real-time statistics, progress tracking, and analytics for your conlang development.

๐Ÿ“– Smart Lexicon

  • Multi-Script Support - Jawi, Arabic, Tengwar, or any custom writing system
  • RTL Support - Automatic right-to-left rendering
  • Comprehensive Fields - Native script, romanization, IPA, etymology, gender, tags
  • Custom Gender System - Neutral, Masculine, Feminine, Divine, or user-defined
  • Full CRUD - Create, read, update, delete with search

โš™๏ธ Affix Calculator

  • Rule Management - Full CRUD for morphological rules (prefix, suffix, infix, circumfix)
  • Auto-Generation - Generate derived words from root words
  • Native Script Support โญ - Automatically generates Jawi/Arabic script for derived words
  • Preview System - See results before generating
  • Perfect for Austronesian Languages - Complex affixation support

โœ๏ธ Sentence Builder

  • Universal Word Order โญ - Validates all 6 patterns:
    • VSO (Verb-Subject-Object) - Welsh, Arabic
    • SVO (Subject-Verb-Object) - English, Mandarin
    • SOV (Subject-Object-Verb) - Japanese, Korean
    • VOS, OVS, OSV - Rare patterns supported
  • Real-time Validation - Visual feedback for sentence structure
  • Pattern Visualization - See your sentence's word order pattern
  • Sentence History - Save and reference valid sentences

๐Ÿ’พ Export/Import

  • JSON Export - Full backup with all metadata
  • CSV Export - Spreadsheet-compatible (Excel, Google Sheets)
  • JSON Import - Restore from backups
  • Auto-naming - Timestamped file names

๐ŸŽจ Modern Design

  • Premium Dark Theme - Glassmorphism effects
  • Fully Responsive - Mobile, tablet, desktop
  • Smooth Animations - Polished UX
  • Quality Typography - Inter (UI), Scheherazade New (Arabic/Jawi)

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/yourusername/glotbase.git
cd glotbase

# Install dependencies
npm install

# Start development server
npm run dev

# Open in browser
http://localhost:5173

Build for Production

npm run build
npm run preview

โœ๏ธ Usage Guide

1. Adding Words

Navigate to Lexicon โ†’ + Add Word:

  • Native Script: Your conlang's writing system (Jawi, Tengwar, etc.)
  • Romanization: Latin transliteration
  • IPA: Phonetic transcription (optional)
  • Part of Speech: Noun, verb, adjective, etc.
  • Gender: Neutral, Masculine, Feminine, Divine, or Custom
  • Etymology: Track word origins
  • Tags: Categorize (basic, nature, divine, etc.)

2. Creating Affix Rules

Go to Affix Calculator โ†’ + Add Rule:

  • Name: e.g., "Nominalizer -an"
  • Type: Prefix, Suffix, Infix, or Circumfix
  • Pattern: Use $ROOT as placeholder
    • Prefix: me-$ROOT
    • Suffix: $ROOT-an
    • Circumfix: ke-$ROOT-an
  • Example: makan โ†’ makanan

New! Native script auto-generation:

Root: makan (ู…ุงูƒู†)
+ Suffix "-an"
= makanan (ู…ุงูƒู†an)

3. Generating Derived Words

  1. Select a root word
  2. Check affix rules to apply
  3. Preview results (shows romanization + native script)
  4. Click Generate - derived words auto-added to lexicon!

4. Testing Word Order

Go to Sentence Builder:

  1. Select your word order (VSO, SVO, SOV, etc.)
  2. Add word slots
  3. Fill with words from your lexicon
  4. See real-time validation and pattern visualization
  5. Save valid sentences to history

๐Ÿ—๏ธ Technology Stack

Layer Technology
Frontend React 18 + TypeScript
Build Tool Vite 6
Styling Vanilla CSS + Custom Properties
State React Context API
Storage LocalStorage (browser-based)

๐Ÿ“ Project Structure

glotbase/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ Dashboard.tsx         # Statistics & analytics
โ”‚   โ”‚   โ”œโ”€โ”€ SmartLexicon.tsx      # Lexicon manager
โ”‚   โ”‚   โ”œโ”€โ”€ AffixCalculator.tsx   # Morphology engine
โ”‚   โ”‚   โ”œโ”€โ”€ SentenceBuilder.tsx   # Word order validator
โ”‚   โ”‚   โ””โ”€โ”€ ExportImport.tsx      # Backup system
โ”‚   โ”œโ”€โ”€ context/
โ”‚   โ”‚   โ”œโ”€โ”€ LexiconContext.tsx    # Word state
โ”‚   โ”‚   โ””โ”€โ”€ AffixContext.tsx      # Affix rules state
โ”‚   โ”œโ”€โ”€ utils/
โ”‚   โ”‚   โ”œโ”€โ”€ affixEngine.ts        # Native script generation
โ”‚   โ”‚   โ”œโ”€โ”€ syntaxValidator.ts    # Multi-pattern validation
โ”‚   โ”‚   โ”œโ”€โ”€ exportImport.ts       # File I/O
โ”‚   โ”‚   โ””โ”€โ”€ storage.ts            # LocalStorage wrapper
โ”‚   โ”œโ”€โ”€ types/
โ”‚   โ”‚   โ””โ”€โ”€ schema.ts             # TypeScript definitions
โ”‚   โ””โ”€โ”€ index.css                 # Global styles & design system
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ vite.config.ts

๐ŸŒ Supported Writing Systems

GlotBase is script-agnostic and supports any writing system:

โœ… Jawi (Arabic-Malay) โœ… Arabic โœ… Tengwar (Elvish) โœ… Hangul (Korean) โœ… Katakana/Hiragana (Japanese) โœ… Cyrillic โœ… Devanagari โœ… Custom invented scripts

All RTL (right-to-left) scripts automatically supported.


๐Ÿ’ก Perfect For

Austronesian-Inspired Languages

  • โœ… Complex affixation (prefix, suffix, infix, circumfix)
  • โœ… VSO word order validation
  • โœ… Jawi/Arabic script with auto-generation
  • โœ… Divine gender for sacred terminology

Tolkien-Style Conlangs

  • โœ… Tengwar or custom scripts
  • โœ… Etymology tracking
  • โœ… Root/derived word system

D&D Campaign Languages

  • โœ… Quick word generation
  • โœ… Tag system (magic, divine, nature)
  • โœ… Export to share with players

Academic Linguistics

  • โœ… IPA transcription
  • โœ… Morphology documentation
  • โœ… Multi-pattern syntax testing

##๐Ÿ”ฎ Roadmap

โœ… Completed (v2.1)

  • Dashboard with real-time stats
  • Smart Lexicon (multi-script, CRUD, search)
  • Affix Calculator with native script generation
  • Sentence Builder (all 6 word orders)
  • Export/Import (JSON & CSV)
  • Custom gender systems
  • Edit rules functionality

๐Ÿšง Planned (v3.0)

  • IPA Virtual Keyboard - Click-to-insert IPA symbols
  • Grammar Wiki - Markdown documentation
  • Phonology Editor - Sound inventory management
  • Batch Generation - Multiple root words at once
  • Rule Categories - Organize rules by function

๐Ÿ”ฎ Future (v4.0+)

  • PDF dictionary export
  • Cloud sync (optional)
  • Multi-language UI
  • Corpus manager

๐Ÿค Contributing

Contributions welcome! Areas for contribution:

  • Additional POS categories
  • Phonology tools
  • Grammar templates
  • Export formats
  • UI translations
# Fork and clone
git clone https://github.com/yourusername/glotbase.git
cd glotbase

# Install and develop
npm install
npm run dev

# Create a PR!

๐Ÿ“„ License

Open source for personal and educational use. Fork and customize for your conlang needs!


๐Ÿ™ Acknowledgments

Built with ๐Ÿ’œ for conlangers worldwide

Fonts:

Inspiration:

  • PolyGlot, Lexique Pro
  • The conlanging community

๐Ÿ“ธ Screenshots

Dashboard

Dashboard Real-time statistics and progress tracking

Smart Lexicon

Lexicon Multi-script word entry

Affix Calculator

Affix Calculator Auto-generate derived words with native script

Sentence Builder

Sentence Builder Universal word order validation


๐Ÿ“ž Support


Happy Conlanging! ๐ŸŒโœจ

โญ If you find GlotBase useful, please consider starring the repo!


Made with love for conlangers, by conlangers.

About

๐ŸŒ GlotBase - A modern web app for building constructed languages (conlangs). Features: multi-script support, affix calculator, export/import, and real-time statistics. Perfect for Austronesian-inspired languages with complex morphology.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published