PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/r/moul/x/allinone/textlab/v0

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
v0
Namespace
moul / x / allinone / textlab
Files
4 (README)(gnomod.toml)
Exported functions
1
Module
gno.land/r/moul/x/allinone/textlab/v0
gno
0.9

Files (4)

  • README.mdmarkdown
  • gnomod.tomltoml
  • textlab.gnogno
  • textlab_test.gnogno
README.mdPreviewRaw
# `gno.land/r/moul/x/allinone/textlab`

Every string algorithm in `p/moul` over one input at once, so they can be
compared instead of read about one at a time.

```
/r/moul/x/allinone/textlab/v0:knight        one word
/r/moul/x/allinone/textlab/v0:knight/night  compared with another
/r/moul/x/allinone/textlab/v0:1987          read as a roman numeral
```

Eight packages: `soundex`, `levenshtein`, `rot13`, `piglatin`, `romannum`,
plus `kit/ui`, `md`, `realmpath` and `r/moul/config`.

## What the combination shows

soundex and levenshtein both claim to tell you whether two words are alike, and
they are measuring different things. soundex keys on the **first letter** and
then on consonant classes, so it is blind to how the rest is spelled.
levenshtein counts edits and is blind to how it sounds.

| pair | soundex | levenshtein |
|---|---|---|
| `knight` / `night` | K523 vs N230, **unrelated** | 1 edit, 83% similar |
| `robert` / `rupert` | R163 vs R163, **identical** | 2 edits, 67% similar |

The first is the clean case: one edit apart, and yet soundex says no, because
the silent K changes the first character of the code. Measured 2026-09-23
against the packages in this tree and pinned by `TestTheDisagreement`, so the
page cannot start saying something false without the suite going red.

## One defect worth keeping in mind

`romannum.FromRoman` **panics** on a string that is not a roman numeral rather
than returning zero. The input here comes out of a URL, so it is screened by
`isRomanNumeral` first. Without that screen the default view aborted, because
`knight` is not a roman numeral and neither is most of what anyone would type.

No state at all: the input comes from the render path and nothing is stored.

<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->

---

Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

**Dependency graph:**

![gno.land/r/moul/x/allinone/textlab/v0 dependency graph](https://raw.githubusercontent.com/moul/gno-contracts/main/_assets/gno.land/r/moul/x/allinone/textlab/v0/deps.png)

> 🧪 **Highly experimental — potentially vibe-coded.** Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).

<!-- END GNOCONTRACTS FOOTER -->

Functions

  • Render(path string) string

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.

Rendered

RenderedRawgnoweb ↗

vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.