{"id":24021055,"url":"https://github.com/zipcodecore/pywordforword","last_synced_at":"2026-03-04T10:02:53.500Z","repository":{"id":223525941,"uuid":"758198364","full_name":"ZipCodeCore/PyWordForWord","owner":"ZipCodeCore","description":"Python version of WordForWord","archived":false,"fork":false,"pushed_at":"2025-04-20T20:15:16.000Z","size":355,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-20T10:06:36.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/ZipCodeCore.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,"publiccode":null,"codemeta":null}},"created_at":"2024-02-15T20:19:01.000Z","updated_at":"2025-04-20T20:15:19.000Z","dependencies_parsed_at":"2025-01-08T12:38:29.762Z","dependency_job_id":"f13ca161-64e9-4eea-81d1-80256872c355","html_url":"https://github.com/ZipCodeCore/PyWordForWord","commit_stats":null,"previous_names":["zipcodecore/pywordforword"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/ZipCodeCore/PyWordForWord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPyWordForWord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPyWordForWord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPyWordForWord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPyWordForWord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZipCodeCore","download_url":"https://codeload.github.com/ZipCodeCore/PyWordForWord/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPyWordForWord/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-01-08T12:38:23.367Z","updated_at":"2026-03-04T10:02:48.490Z","avatar_url":"https://github.com/ZipCodeCore.png","language":null,"readme":"# PyWordForWord\n\nPython version of WordForWord - a series of text processing methods\n\nFor the sake of this lab, words are not and do not have punctuation.\nSo treat punctuation like whitespace.\n\nFour phases of text processing to do. Write a method for each one.\n\n`func print(filename)`\nWrite a method that reads the contents of a file, line by line, and creates a String object,\nmaking sure all the newlines are preserved.\n\n`func wc(String input)`\ncommonly called \"wc\"; count the number of characters in a file, number of words, number of lines.\nReturns an tuple with the number of lines, words and characters.\n\n`func wordFrequency(String input)`\nword count. words in the string, produce a dictionary with (str word, int numOfTimes).\n\n`func letterFrequency(String input)`\nletter frequency, write a program that collects the frequency of each letter within the input. produces a dictionary with letters as the key, number of occurences as value.\n\nInput like `The Blue Fox is blue.` would produce a map like\n\n| Word | Count |\n|------|-------|\n| the  | 1     |\n| blue | 2     |\n| fox  | 1     |\n| is   | 1     |\n\nThe class would also have a method `frequency(word)` which returns the relative frequency of the word in the input text.\nSo `frequency(\"blue\")` would return 0.4 as a result.\nThis means you need to track the total number of words in the input, \nas frequency is `numberOfOccurences / totalNumberOfWords`\n\nYou probably need to make this all methods on a class, not just a simple\nscript file. That way the total number of words can be kept ina instance var, making\nthe frequency calculation very easy.\n\nnotice how if you had a `letterFrequency(letter)` it'd work too.\n\nFinally, read thru all the files in `testdata/` and perform the text processing on\neach file. Capture all the output results into a file and post that as `ResultsOfProcessing.txt` in the repo.\n\nTake a look at Part Deux of this lab -\u003e [Notes](Notes.md)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzipcodecore%2Fpywordforword","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzipcodecore%2Fpywordforword","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzipcodecore%2Fpywordforword/lists"}