Build tools and build support files as well as developer support tools for the GiellaLT repositories.
This document describes the JSON files used as endpoints for shields.io badges displayed in language repository GitHub pages.
Badge JSON files are generated in the docs/badgedata/ directory of each language repository during the build process. These files are served from the gh-pages branch.
Files follow the pattern: prefix-datatype.json
fst-lemmacount.json: Number of lemmas in the lexiconfst-maturity.json: Maturity level of the language resourcesfst-version.json: FST version number (from AC_INIT in configure.ac)speller-suggestions.json: Spell checker suggestion quality metrics
speller-version.json: Speller version number (from SPELLERVERSION in configure.ac)These JSON files follow the shields.io endpoint JSON schema:
{
"schemaVersion": 1,
"label": "Badge Label",
"message": "Badge Message",
"color": "badge-color"
}
Colors typically follow this pattern based on quality/maturity:
These files are automatically generated during the build process via rules in giella-core/am-shared/docs-dir-include.am using the FORCE target to ensure they are always regenerated.
Badge JSON files are generated by shell scripts in giella-core/scripts/:
make-lemmacount.json.sh: Generates FST lemma count badgemake-maturity.json.sh: Generates maturity level badgemake-spellerbadge-json.sh: Generates speller suggestion quality badgemake-version-json.sh: Generates version badges (FST, speller, etc.)
make-version-json.sh INPUTDIR VARNAME [--label LABEL]To display a badge in a repository README, use shields.io endpoint syntax:

Replace lang-xxx with the appropriate language code.