Download the PHP package crosseno/clues without Composer
On this page you can find all versions of the php package crosseno/clues. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crosseno/clues
More information about crosseno/clues
Files in crosseno/clues
Package clues
Short Description Language-neutral clue selection, validation, and deterministic assignment for Crosseno crosswords.
License MIT
Informations about the package clues
Crosseno Clues
Language-neutral clue selection, validation, and deterministic assignment for Crosseno crosswords.
The package provides bounded clue lookup, validation, scoring, selection, and post-placement assignment.
Installation
Published releases resolve crosseno/core and crosseno/lexicon through tagged ^0.1 constraints. Source-level CI injects checked-out siblings through Composer's global root configuration; the published manifest contains no path repositories.
Usage
Catalogs implement ClueProviderInterface and return bounded results for a sense, language policy, and allowed types. The assigner validates every candidate, ranks valid clues with integer scores, uses a versioned SHA-256 tie order, prevents repeated IDs/text, then validates the complete set.
A runtime language pack's storage-neutral lexical catalog can be adapted directly:
The adapter requires a stable sense-key query, applies the requested language-matching policy and type filter, preserves stable IDs, bounds results, and returns clue-ID order. Catalog records with missing required difficulty or unsupported domain data fail explicitly. See catalog provider.
Clue text is plain UTF-8 text. HTML is never trusted or interpreted by this package; renderers must escape it for their output context. Construction and assignment policies independently enforce byte and Unicode-code-point limits.
Language services and validation
Leakage policy explicitly chooses display text, normalized tokens, lemmas, or supplied inflected forms, plus whole-token or substring matching. Normalization and lexical equivalence come from crosseno/lexicon interfaces through LanguageServiceProviderInterface. Missing services and missing sense mappings have explicit fail-closed or opt-out policies.
The standard validators cover answer leakage, same-root leakage, unsupported/ambiguous senses, language mismatch, length, difficulty, duplicates, missing clues, and set-level difficulty balance.
Boundaries
Assignment runs only after placement. The package does not query clue text in generator search, render HTML, depend on a concrete language pack, expose SQLite records, or provide CMS container/routing configuration.
Ordinary applications normally receive the standard assigner through crosseno/builder; direct use remains available for custom policy. The English executable proof is crosseno/builder/examples/generate-english.php.
All versions of clues with dependencies
ext-mbstring Version *
crosseno/core Version ^0.1
crosseno/lexicon Version ^0.1