No description
Find a file
Snider 307434a1e5
Some checks failed
Security Scan / security (push) Has been cancelled
Test / test (push) Has been cancelled
chore(repo): cleanup tracked-artifacts + replace-directives (audit dims)
Removes: -1 replace-directives. Updates .gitignore with canonical artifact pattern set.

Audit dims `tracked-artifacts` + `replace-directives` (core/go commits
62aac07 + b48b896). Same root-cause class as Mantis #1333 / structural
no-replace policy. Applying ecosystem-wide.

Co-Authored-By: Cladius Maximus <cladius@lethean.io>
2026-05-01 10:39:34 +01:00
.core chore: add .core/ build and release configs 2026-03-06 18:52:36 +00:00
.forgejo/workflows ci: add Forgejo Actions test and security scan workflows 2026-02-23 03:28:02 +00:00
docs docs(i18n): align article examples with API 2026-04-03 07:39:56 +00:00
external refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1235) 2026-04-30 22:12:27 +01:00
go chore(repo): cleanup tracked-artifacts + replace-directives (audit dims) 2026-05-01 10:39:34 +01:00
.editorconfig chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:39 +00:00
.gitignore chore(repo): add local workflow targets 2026-04-02 14:48:13 +00:00
.gitmodules refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1235) 2026-04-30 22:12:27 +01:00
.golangci.yml chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:39 +00:00
.woodpecker.yml ci: woodpecker pipeline (Go) — golangci-lint/eslint/phpstan + sonar.lthn.sh 2026-04-29 00:03:07 +01:00
AGENTS.md refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1235) 2026-04-30 22:12:27 +01:00
CLAUDE.md chore: migrate to dappco.re vanity import path 2026-03-21 23:49:15 +00:00
CONTRIBUTING.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:39 +00:00
go.work refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1235) 2026-04-30 22:12:27 +01:00
LICENCE chore: add EUPL-1.2 LICENCE file (UK English canonical) 2026-05-01 08:34:12 +01:00
Makefile chore(repo): add local workflow targets 2026-04-02 14:48:13 +00:00
README.md chore(repo): add local workflow targets 2026-04-02 14:48:13 +00:00
REVIEW.md review: post-implementation findings for dual-class disambiguation 2026-02-19 16:50:18 +00:00
sonar-project.properties ci: woodpecker pipeline (Go) — golangci-lint/eslint/phpstan + sonar.lthn.sh 2026-04-28 23:33:23 +01:00

Go Reference License: EUPL-1.2 Go Version

go-i18n

Grammar engine for Go. Provides forward composition primitives (PastTense, Gerund, Pluralize, Article, composite progress and label functions), a T() translation entry point with namespace key handlers, and a reversal engine that recovers base forms and grammatical roles from inflected text. The reversal package produces GrammarImprint feature vectors for semantic similarity scoring, builds reference domain distributions, performs anomaly detection, and includes a 1B model pre-sort pipeline for training data classification. Consumers bring their own translation keys; this library provides the grammatical machinery.

Module: dappco.re/go/core/i18n Licence: EUPL-1.2 Language: Go 1.25

Quick Start

import "dappco.re/go/core/i18n"

// Grammar primitives
fmt.Println(i18n.PastTense("delete"))   // "deleted"
fmt.Println(i18n.Gerund("build"))       // "building"
fmt.Println(i18n.Pluralize("file", 3))  // "files"

// Translation with auto-composed output
fmt.Println(i18n.T("i18n.progress.build"))  // "Building..."
fmt.Println(i18n.T("i18n.done.delete", "file"))  // "File deleted"

// Reversal: recover grammar from text
tokeniser := reversal.NewTokeniser()
tokens := tokeniser.Tokenise("deleted the files")
imprint := reversal.NewImprint(tokens)

Documentation

  • Architecture — grammar primitives, T() handlers, reversal engine, GrammarImprint, reference distributions, 1B pipeline
  • Development Guide — building, testing, grammar table structure (critical: do not flatten JSON)
  • Project History — completed phases and known limitations

Build & Test

go test ./...
go test -v ./reversal/
go test -bench=. ./...
go build ./...

For repeatable local runs in a clean workspace, the repo also ships a Makefile with the standard workflow targets:

make build
make vet
make test
make cover
make tidy

Licence

European Union Public Licence 1.2 — see LICENCE for details.