{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/github-typo-corpus-a-large-scale-multilingual","title":"GitHub Typo Corpus: A Large-Scale Multilingual Dataset of Misspellings and Grammatical Errors","arxiv_id":"1911.12893","date":"2019-11-28","proceeding":"LREC 2020 5","authors":["Masato Hagiwara","Masato Mita"],"abstract":"The lack of large-scale datasets has been a major hindrance to the development of NLP tasks such as spelling correction and grammatical error correction (GEC). As a complementary new resource for these tasks, we present the GitHub Typo Corpus, a large-scale, multilingual dataset of misspellings and grammatical errors along with their corrections harvested from GitHub, a large and popular platform for hosting and sharing git repositories. The dataset, which we have made publicly available, contains more than 350k edits and 65M characters in more than 15 languages, making it the largest dataset of misspellings to date. We also describe our process for filtering true typo edits based on learned classifiers on a small annotated subset, and demonstrate that typo edits can be identified with F1 ~ 0.9 using a very simple classifier with only three features. The detailed analyses of the dataset show that existing spelling correctors merely achieve an F-measure of approx. 0.5, suggesting that the dataset serves as a new, rich source of spelling errors that complement existing datasets.","url_abs":"https://arxiv.org/abs/1911.12893v1","url_pdf":"https://arxiv.org/pdf/1911.12893v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"github-typo-corpus-a-large-scale-multilingual","repo_url":"https://github.com/mhagiwara/github-typo-corpus","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[{"task_slug":"grammatical-error-correction","task_name":"Grammatical Error Correction"},{"task_slug":"spelling-correction","task_name":"Spelling Correction"}],"methods":[],"datasets_introduced":[{"slug":"github-typo-corpus","name":"GitHub Typo Corpus","full_name":"GitHub Typo Corpus"}],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1911.12893","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1911.12893"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mhagiwara/github-typo-corpus","reach":null}],"summary":{"ran_draft_wrong":3,"ran_violates":1},"by_repo_kind":{"official":{"samples":4,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":4,"samples":[{"code_sha256_prefix":"0fd85a612f23787d","entry":"collect_repo_urls","repo":"mhagiwara/github-typo-corpus","repo_kind":"official","path":"src/collect_repositories.py","file_url":"https://github.com/mhagiwara/github-typo-corpus/blob/HEAD/src/collect_repositories.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0fd85a612f23787d"}},{"code_sha256_prefix":"24c0de82146dfc61","entry":"extract_valid_pairs","repo":"mhagiwara/github-typo-corpus","repo_kind":"official","path":"src/extract_diffs.py","file_url":"https://github.com/mhagiwara/github-typo-corpus/blob/HEAD/src/extract_diffs.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"24c0de82146dfc61"}},{"code_sha256_prefix":"62148ac1a93546be","entry":"get_diff_lines","repo":"mhagiwara/github-typo-corpus","repo_kind":"official","path":"src/extract_diffs.py","file_url":"https://github.com/mhagiwara/github-typo-corpus/blob/HEAD/src/extract_diffs.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"62148ac1a93546be"}},{"code_sha256_prefix":"16689331d67b0cca","entry":"is_valid_repo","repo":"mhagiwara/github-typo-corpus","repo_kind":"official","path":"src/collect_repositories.py","file_url":"https://github.com/mhagiwara/github-typo-corpus/blob/HEAD/src/collect_repositories.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"16689331d67b0cca"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}