{"id":13419525,"url":"https://github.com/techcentaur/PyLex","last_synced_at":"2025-03-15T05:31:28.487Z","repository":{"id":67983005,"uuid":"131605085","full_name":"techcentaur/PyLex","owner":"techcentaur","description":"Perform lexical analysis on words, one word at a time.","archived":false,"fork":false,"pushed_at":"2018-06-06T18:58:27.000Z","size":30,"stargazers_count":64,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-31T22:49:49.073Z","etag":null,"topics":["cli","lexical-analysis","nlp","poets","python3","scraping","words"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techcentaur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-04-30T14:21:59.000Z","updated_at":"2023-11-28T21:26:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c0215d5-7534-4760-acd2-dd8043709aa8","html_url":"https://github.com/techcentaur/PyLex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techcentaur%2FPyLex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techcentaur%2FPyLex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techcentaur%2FPyLex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techcentaur%2FPyLex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techcentaur","download_url":"https://codeload.github.com/techcentaur/PyLex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690114,"owners_count":20331726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","lexical-analysis","nlp","poets","python3","scraping","words"],"created_at":"2024-07-30T22:01:17.208Z","updated_at":"2025-03-15T05:31:28.212Z","avatar_url":"https://github.com/techcentaur.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# PyLex\nPython3 library for performing lexical analysis on words, one word at a time.\n\n## Usage\n\n#### Help Usage\n\n```console\ngavy42@jarvis:~/PyLex$ python3 script.py -h\nusage: script.py [-h] [-r] [-s] [-a] [-m] [-hg] [-sa] [-n NUMBER] [-f]\n                 word\n\nPyLex: Perform lexical analysis, one word at a time.\n\npositional arguments:\n  word                  an input of the word\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -r, --rhyme           get rhyming words\n  -s, --synonym         get synonym\n  -a, --antonym         get antonyms\n  -m, --meaning         get meaning\n  -hg, --homographs     get homographs\n  -sa, --sound_alike    get words that sound alike\n  -n NUMBER, --number NUMBER\n                        number of words should be returned\n  -f, --full            FULL lexical analysis\n```\n\n#### Interpreter Usage\n\n```python3\n\u003e\u003e\u003e from script import Lex\n\u003e\u003e\u003e lex = Lex(\"alone\")\n\u003e\u003e\u003e lex\n\u003cscript.Lex object at 0x7f8c075c5d68\u003e\n\u003e\u003e\u003e wordlist = lex.rhyming_words()\n[*] Getting rhyming words for the word: alone...\n\u003e\u003e\u003e lex.display_wordlist(wordlist, 4)\n[*] Displaying list; Format: Descending\ncologne\nmalone\noverblown\nblown\n```\n\n#### Functions Usage\n\nAfter creating an object instance as `Lex(\u003cstring\u003e)`, these functions are available\n\n- `rhyming_words()` : Returns a list of words rhyming with the entered word.\n- `synonyms()` : Returns a list of synonyms\n- `antonyms()` : Returns a list of antonyms\n- `meaning()` : Returns a list of possible meanings\n- `homophones()` : Returns a list of homophones\n- `homographs()` : Returns a list of homographs\n- `sound_alike()` : Returns a list of words that sound alike the given word\n\n## PyLex Full Analysis\n\n- Run `python3 script.py \u003cword\u003e -f` to get full lexical analysis of any word.\n- Returns a JSON format file with contained information.\n\n```console\ngavy42@jarvis:~/PyLex$ python3 script.py alone -f\n[!][!] Starting full analysis of: alone\n\n[*][*] JSON file saved in local directory named - alone_lex_analysis.json\n\n```\n\n### Note\n- Program makes calls to external website to gather the information and scrapes content wherever needed.\n\n## Support\nIf you have any trouble understading some part of the code, feel free to raise an issue or for contributing, feel free to make a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechcentaur%2FPyLex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechcentaur%2FPyLex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechcentaur%2FPyLex/lists"}