Increase Pyswahili functionality#10
Open
NathanKagoro wants to merge 4 commits into
Open
Conversation
Agent-Logs-Url: https://github.com/NathanKagoro/pyswahili/sessions/a8f0cc63-9451-418c-8c89-8540199663f4 Co-authored-by: NathanKagoro <64480934+NathanKagoro@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NathanKagoro/pyswahili/sessions/65207282-48b7-48b6-9764-c1d03dc4ec60 Co-authored-by: NathanKagoro <64480934+NathanKagoro@users.noreply.github.com>
…n-built-ins Add increased python functionality support to pyswahili
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 inpyswahili/sw_to_en.py.Documentation updates:
README.mdto 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:
tests/test_pyswahili.pyto verify that each new Swahili keyword is correctly translated to its Python equivalent and that the translated code executes as expected.