{"id":13799926,"url":"https://github.com/asimihsan/codeword-alexa-skill","last_synced_at":"2025-03-23T21:14:54.480Z","repository":{"id":140287763,"uuid":"52179888","full_name":"asimihsan/codeword-alexa-skill","owner":"asimihsan","description":"Generate code words using Alexa.","archived":false,"fork":false,"pushed_at":"2016-02-21T02:05:58.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T04:38:52.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/asimihsan.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}},"created_at":"2016-02-20T22:59:48.000Z","updated_at":"2019-12-18T20:58:44.000Z","dependencies_parsed_at":"2023-05-05T18:31:27.229Z","dependency_job_id":null,"html_url":"https://github.com/asimihsan/codeword-alexa-skill","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/asimihsan%2Fcodeword-alexa-skill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asimihsan%2Fcodeword-alexa-skill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asimihsan%2Fcodeword-alexa-skill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asimihsan%2Fcodeword-alexa-skill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asimihsan","download_url":"https://codeload.github.com/asimihsan/codeword-alexa-skill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168902,"owners_count":20571804,"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":[],"created_at":"2024-08-04T00:01:07.258Z","updated_at":"2025-03-23T21:14:54.440Z","avatar_url":"https://github.com/asimihsan.png","language":"Python","funding_links":[],"categories":["Skills"],"sub_categories":[],"readme":"# codeword-alexa-skill\n\nGenerate code words using Alexa.\n\n## How to deploy\n\n-   Install nltk (`conda install nltk`), then run the NLTK downloader:\n\n```\npython -c 'import nltk; nltk.download()'\n```\n\n-   Install `averaged_perceptron_tagger`\n    Install the `wordnet` corpus.\n-   Run the following to generate the words database:\n\n```\ncd codeword\n./generate_lookup.py\n```\n\nThen create a deployment ZIP file for lambda:\n\n```\n./create_lambda_deployment\n```\n\n## How to set up Lambda\n\n-   Create a Lambda deployment ZIP file\n-   Create a new Lambda function\n    -   Handler: \"main.lambda_handler\"\n    -   Role: \"lamda_basic_execution\"\n    -   Event source: \"Alexa Skills Kit\"\n-   You can test it with the following basic event:\n\n```\n{\n  \"session\": {\n    \"new\": true,\n    \"sessionId\": \"session1234\",\n    \"attributes\": {},\n    \"user\": {\n      \"userId\": null\n    },\n    \"application\": {\n      \"applicationId\": \"amzn1.echo-sdk-ams.app.[unique-value-here]\"\n    }\n  },\n  \"version\": \"1.0\",\n  \"request\": {\n    \"type\": \"LaunchRequest\",\n    \"requestId\": \"request5678\"\n  }\n}\n```\n\n-   Now go to https://developer.amazon.com/edw/home.html#/skills/list\n-   Create a new skill\n    -   Name: \"Code Phrase Generator\"\n    -   Invocation name: \"for a code phrase\"\n    -   Version: \"1.0\"\n    -   Endpoint: Lambda ARN\n    -   The intent schema is:\n\n```\n{\n    \"intents\": [\n        {\n            \"intent\": \"GetCodePhrase\"\n        }\n    ]\n}\n```\n\n    -   Sample utterances:\n\n```\nGetCodePhrase for a code phrase\nGetCodePhrase for a phrase\nGetCodePhrase for a code\nGetCodePhrase for a code word\nGetCodePhrase for a codeword\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasimihsan%2Fcodeword-alexa-skill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasimihsan%2Fcodeword-alexa-skill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasimihsan%2Fcodeword-alexa-skill/lists"}