Skip to content

[KEYWORD] Add logical operators: and / or / not #33

Description

@alphacrack

There are no mappings for the logical operators and, or, not — conditions must be written with nested यदि blocks.

Suggested starting points (native speakers, please improve!):

  • आ → and
  • वा → or
  • not is the tricky one: the obvious word नहि is already part of नहि त (else) and नहि त यदि (elif) — a bare नहि mapping must be ordered after those longer phrases in DEVNAGIRI_KEYWORD_MAP, and needs regression tests proving नहि त: still becomes else: (patterns apply in dict insertion order).

Steps:

  1. Mappings in mappings.py with careful ordering
  2. Tests: each operator alone, combined conditions, and the नहि / नहि त / नहि त यदि collision matrix
  3. README keyword table + an example using a compound condition

Good first issue with one genuinely interesting edge case. Propose word choices in a comment first.

Activity

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

    P3Low priority: nice to haveenhancementNew feature or requestgood first issueGood for newcomerskeyword-mappingNew or changed Maithili keyword / module mappings

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions