HeadlinesBriefing favicon HeadlinesBriefing.com

GNL: Formal Language for Clothing Construction

Hacker News •
×

A new formal language called Garment Notation Language (GNL) brings the rigor of musical notation and architectural drawings to clothing construction. Developed by khalildh, this open-source project provides a generative descriptive language where a valid expression is sufficient to construct a garment without ambiguity.

Inspired by Labanotation for dance and staff notation for music, GNL anchors garments to the body using anatomical landmarks and regions. The language is topological, constructive, and composable, encoding build order rather than just final form. A quick example demonstrates how to describe a t-shirt with fabric specifications, pattern pieces, and construction steps.

The project includes a live viewer that parses GNL and renders both assembled garment views and flat pattern pieces. Users can write GNL on the left and see the full garment on the right, complete with stitch lines and dimension callouts. A Korosteleva Dataset Converter transforms 2D panel geometry from research datasets into GNL, enabling semantic garment descriptions from raw geometric data.