Skip to content

Tongues: bless Setswana words for ELSE, NOT, FOR, WHILE, ENDFOR and ENDWHILE #2

Open

Description

@alakanani

Welcome, builder. This is a friendly starter task for Hacktoberfest. Comment below to claim it, then open your pull request any time in October. Questions are welcome in our Discord: https://discord.gg/894FEJhWfZ

The task

God Code keywords can be written in Setswana (the tn tongue). Six words still stay in English because we are waiting for speakers to bless better ones: ELSE, NOT, FOR, WHILE, ENDFOR, ENDWHILE. The design note at the top of godcode/tongues.py says exactly this.

Propose Setswana words for some or all of the six, add them to the tongue, and document them.

Where to work

  • godcode/tongues.py: add your words to the _TN_ALIASES table, following the comment style already there.
  • docs/TONGUES.md: extend the Setswana word table.
  • tests/: add tests beside the existing tongue tests, following their pattern.

Rules for the words

  • A word must not collide with an existing alias, a keyword, or a named tool (SHA256, UPPER and friends keep their names in every tongue).
  • Keywords are case-insensitive; canonical style is UPPER.
  • If you are a Setswana speaker, say so in your pull request. Your blessing is the review that matters most here.

How to verify

pip install -e .
python -m pytest tests/ -q
godcode check --json your_test_scroll.god

Write a small scroll with # tongue: tn that uses your new words in a FA... block and a FOR loop, and confirm it checks clean and runs.

Done looks like

The six words (or the ones you claimed) work in a real scroll, the word table in docs/TONGUES.md lists them, tests pass, and the full suite stays green.

Please read CONTRIBUTING.md and our Code of Conduct before you start. You are welcome here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions