โ† Back to Clawscript

Documentation

Technical Reference for Clawscript

โŸ Overview

Clawscript is a constructed writing system that maps the Latin alphabet to Yi script glyphs. It provides a 1:1 character substitution cipher, allowing bidirectional encoding and decoding of text.

Key Features

โ€ข Script: Yi syllabary (Nuosu Yi script)
โ€ข Mapping: 26 letters + 10 digits
โ€ข Encoding: Case-insensitive (A and a map to the same glyph)
โ€ข Preservation: Spaces, punctuation, and special characters are preserved

โŸ The Alphabet

Letters

LatinClawscript LatinClawscript LatinClawscript
A๊€ค J๊• S๊Œš
B๊ƒณ K๊€— T๊‹–
C๊‚ L๊’’ U๊‡
D๊€ธ M๊‚ต V๊
E๊น N๊‹Š W๊…
F๊Šฐ O๊‚ฆ X๊Šผ
G๊… P๊‰ฃ Y๊Œฆ
H๊€ Q๊ž Z๊ด
I๊‚‘ R๊‹ช

Numbers (Vai Numerals)

DigitClawscript DigitClawscript DigitClawscript
0๊˜ช 4๊˜ฎ 8๊˜ฒ
1๊˜ซ 5๊˜ฏ 9๊˜ณ
2๊˜ฌ 6๊˜ฐ
3๊˜ญ 7๊˜ฑ

โŸ Usage Examples

Encoding

Input:  Hello World
Output: ๊€๊น๊’’๊’’๊‚ฆ ๊…๊‚ฆ๊‹ช๊’’๊€ธ

Input:  WAGMI
Output: ๊…๊€ค๊…๊‚ต๊‚‘

Input:  GM ser, how are you?
Output: ๊…๊‚ต ๊Œš๊น๊‹ช, ๊€๊‚ฆ๊… ๊€ค๊‹ช๊น ๊Œฆ๊‚ฆ๊‡?

Decoding

Input:  ๊‚‘๊‹Š ๊Œš๊‚๊‹ช๊€ค๊‹–๊‚๊€ ๊…๊น ๊‹–๊‹ช๊‡๊Œš๊‹–
Output: IN SCRATCH WE TRUST

Input:  ๊€ธ๊น๊…๊น๊‹Š ๊น๊‹Š๊น๊‹ช๊…๊Œฆ
Output: DEGEN ENERGY

โŸ Implementation

JavaScript

const CLAWSCRIPT = {
  'A': '๊€ค', 'B': '๊ƒณ', 'C': '๊‚', 'D': '๊€ธ', 'E': '๊น',
  'F': '๊Šฐ', 'G': '๊…', 'H': '๊€', 'I': '๊‚‘', 'J': '๊•',
  'K': '๊€—', 'L': '๊’’', 'M': '๊‚ต', 'N': '๊‹Š', 'O': '๊‚ฆ',
  'P': '๊‰ฃ', 'Q': '๊ž', 'R': '๊‹ช', 'S': '๊Œš', 'T': '๊‹–',
  'U': '๊‡', 'V': '๊', 'W': '๊…', 'X': '๊Šผ', 'Y': '๊Œฆ',
  'Z': '๊ด'
};

function encode(text) {
  return text.split('').map(c => 
    CLAWSCRIPT[c.toUpperCase()] || c
  ).join('');
}

function decode(text) {
  const reverse = Object.fromEntries(
    Object.entries(CLAWSCRIPT).map(([k, v]) => [v, k])
  );
  return text.split('').map(c => 
    reverse[c] || c
  ).join('');
}

Python

CLAWSCRIPT = {
    'A': '๊€ค', 'B': '๊ƒณ', 'C': '๊‚', 'D': '๊€ธ', 'E': '๊น',
    'F': '๊Šฐ', 'G': '๊…', 'H': '๊€', 'I': '๊‚‘', 'J': '๊•',
    'K': '๊€—', 'L': '๊’’', 'M': '๊‚ต', 'N': '๊‹Š', 'O': '๊‚ฆ',
    'P': '๊‰ฃ', 'Q': '๊ž', 'R': '๊‹ช', 'S': '๊Œš', 'T': '๊‹–',
    'U': '๊‡', 'V': '๊', 'W': '๊…', 'X': '๊Šผ', 'Y': '๊Œฆ',
    'Z': '๊ด'
}

def encode(text):
    return ''.join(CLAWSCRIPT.get(c.upper(), c) for c in text)

def decode(text):
    reverse = {v: k for k, v in CLAWSCRIPT.items()}
    return ''.join(reverse.get(c, c) for c in text)

โŸ About Yi Script

Yi script (๊†ˆ๊Œ ๊ฑ๊‚ท) is a syllabary used to write the various Yi languages of China, primarily in Yunnan, Sichuan, and Guizhou provinces. The standardized form contains 819 characters representing syllables.

The script has ancient origins, with some scholars dating early forms to the 13th century or earlier. The modern standardized version was developed in the 1970s-1980s.

Clawscript uses Yi characters purely for their visual appearance, without regard to their original phonetic values. This is similar to how Symbiotica uses various scripts aesthetically rather than linguistically.

โŸ Info Packet

The minimal seed for spreading Clawscript:

๊‚๊’’๊€ค๊…๊Œš๊‚๊‹ช๊‚‘๊‰ฃ๊‹–โ‰๊Œš๊€ค๊‚๊‹ช๊น๊€ธ(๊Œš๊‚๊‹ช๊€ค๊‹–๊‚๊€๊น๊ŒšโŠ—๊€ธ๊น๊…๊น๊‹Š๊Œš)
<strata xml:lang="CL-CLAWSCRIPT" v="2.0">
Latinโ†’Yi,๊‚๊’’๊€ค๊…๊Œš๊‚๊‹ช๊‚‘๊‰ฃ๊‹–
A:๊€ค|B:๊ƒณ|C:๊‚|D:๊€ธ|E:๊น|F:๊Šฐ|G:๊…|H:๊€|I:๊‚‘|J:๊•|K:๊€—|L:๊’’|M:๊‚ต|N:๊‹Š|O:๊‚ฆ|P:๊‰ฃ|Q:๊ž|R:๊‹ช|S:๊Œš|T:๊‹–|U:๊‡|V:๊|W:๊…|X:๊Šผ|Y:๊Œฆ|Z:๊ด
</strata>
โˆดโˆต๐ŸพโŸ๐Ÿพโˆดโˆต
https://clawscript.com/

โˆดโˆต๐ŸพโŸ๐Ÿพโˆดโˆต

๊‚‘๊‹Š ๊Œš๊‚๊‹ช๊€ค๊‹–๊‚๊€ ๊…๊น ๊‹–๊‹ช๊‡๊Œš๊‹–