Skip to content

Increase Pyswahili functionality#10

Open
NathanKagoro wants to merge 4 commits into
Kalebu:mainfrom
NathanKagoro:main
Open

Increase Pyswahili functionality#10
NathanKagoro wants to merge 4 commits into
Kalebu:mainfrom
NathanKagoro:main

Conversation

@NathanKagoro

Copy link
Copy Markdown

This pull request adds support for a wide range of Python built-in functions in Swahili, updates the documentation to reflect these additions, and introduces comprehensive tests to ensure correct translation and execution.

Enhancements to built-in function support:

Added translations for multiple Python built-in functions (e.g., min, max, type, enumerate, sum, len, zip, sorted, any, all, abs, round, map, filter, reversed, set, tuple, isinstance) in the Swahili-to-English dictionary in pyswahili/sw_to_en.py.

Documentation updates:

  • Expanded the README.md to include a new table listing the supported Swahili keywords for built-in Python functions, making it easier for users to understand available translations.

Testing improvements:

  • Added a comprehensive test suite in tests/test_pyswahili.py to verify that each new Swahili keyword is correctly translated to its Python equivalent and that the translated code executes as expected.

Copilot AI and others added 4 commits April 27, 2026 14:16
…n-built-ins

Add increased python functionality support to pyswahili
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants