{"id":23318501,"url":"https://github.com/mcb2003/gc","last_synced_at":"2025-04-07T05:18:30.645Z","repository":{"id":94722702,"uuid":"308751320","full_name":"mcb2003/gc","owner":"mcb2003","description":"Grammar Corrector - A simple C project to fix common issues with text.","archived":false,"fork":false,"pushed_at":"2021-02-24T23:18:29.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T09:31:43.766Z","etag":null,"topics":["c","cli","commandline","full-stop","grammar","period","whitespace"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcb2003.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":"2020-10-30T21:50:59.000Z","updated_at":"2023-02-16T02:17:11.000Z","dependencies_parsed_at":"2023-03-06T01:45:19.939Z","dependency_job_id":null,"html_url":"https://github.com/mcb2003/gc","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/mcb2003%2Fgc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Fgc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Fgc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Fgc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcb2003","download_url":"https://codeload.github.com/mcb2003/gc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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":["c","cli","commandline","full-stop","grammar","period","whitespace"],"created_at":"2024-12-20T17:17:13.457Z","updated_at":"2025-04-07T05:18:30.633Z","avatar_url":"https://github.com/mcb2003.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gc - Grammar Corrector\n\nThis started out of an idea spawned by a question on an exam paper that\nasked me to write an algorithm to automatically capitalise letters at the\nbeginning of sentences. I took the algorithm I came up with a bit further,\ntransformed the pseudocode into C, and this was the result.\n\nThe code is pretty well commented (some might even say over-commented), in part\nbecause I'm just getting to grips with C myself for anything approaching a\n\"project\", and in part because I'd like to show this to people who may not\nhave learned C, ormore likely don't know about things like ANSI terminal\nescape codes, the standard streams, etc.\n\n## Features\n\n* Automatically capitalises the first letter of sentences (only if they start with a letter)\n* Collapses any excessive white-space to a single space character\n* Completely trims off white-space at the start of the text\n* Reads from files given as command-line args (or stdin), writes to standard output\n\n## Compiling\n\nAll you need to do is run `make` for a debug build, or `make release` for\na release build. You can also run `make clean` to clean up generated object\nfiles and the binary itself.\n\n## Usage\n\nJust run `gc \u003cfilename\u003e`, where filename is the name of a file you'd like to fix. For example:\n\n**test.txt:**\n\n    this is   a test  file.        it's not very well      written.\n    that's the point.\n    \n    here's another        paragraph.\n\n```sh\n./gc test.txt\n```\n\n**Output:**\n\n    This is a test file. It's not very well written.\n    That's the point.\n\n    Here's another paragraph.\n\nFor complete help and usage examples, run `./gc --help`:\n\n    Usage:\n            ./gc # Read from STDIn\n            ./gc file1|-[ file2|-[ ...]]\n\n    ./gc - Grammar Corrector  Copyright (C) 2020  Michael Connor Buchan\n    Corrects grammar and punctuation, and collapses white-space in each of the input\n    files, outputting to STDOUT by default.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcb2003%2Fgc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcb2003%2Fgc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcb2003%2Fgc/lists"}