From 2eec63919e758b6f037765c8ca46f53a42c5f138 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 24 Nov 2021 16:10:30 -0800 Subject: codespell fix minor typos (there are some more in actual code --- chocula/common.py | 6 +++--- chocula/directories/vanished_disapeared.py | 2 +- chocula/util.py | 2 +- notes/explore.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chocula/common.py b/chocula/common.py index 94c4c7f..29b6e26 100644 --- a/chocula/common.py +++ b/chocula/common.py @@ -178,7 +178,7 @@ class KbartLoader: class OnixCsvLoader(KbartLoader): """ Similar to the KBART loader class, but for ONIX CSV files instead of KBART - formated TSV. + formatted TSV. CSV columns: - ISSN @@ -224,7 +224,7 @@ class OnixCsvLoader(KbartLoader): class CarinianaCsvLoader(KbartLoader): """ Similar to the KBART loader class, but for custom CSV files instead of - KBART formated TSV. + KBART formatted TSV. CSV columns: - Region @@ -273,7 +273,7 @@ class HathifilesLoader(KbartLoader): """ Similar to the KBART loader class, but for Hathifiles bulk format. - Relavent TSV columns ("one-indexed", not zero-indexed): + Relevant TSV columns ("one-indexed", not zero-indexed): - 2 access (allow=bright, deny=dark) - 5 description diff --git a/chocula/directories/vanished_disapeared.py b/chocula/directories/vanished_disapeared.py index 36bd66b..72d1a86 100644 --- a/chocula/directories/vanished_disapeared.py +++ b/chocula/directories/vanished_disapeared.py @@ -9,7 +9,7 @@ from chocula.database import DirectoryInfo, HomepageUrl class VanishedDisapearedLoader(DirectoryLoader): """ Journal-level metadata from the "Vanished Journals" project. This is the - "disapeared" dataset, with many homepage URLs in wayback (web.archive.org). + "disappeared" dataset, with many homepage URLs in wayback (web.archive.org). CSV headers: - Source diff --git a/chocula/util.py b/chocula/util.py index 1d4a5d5..ed7398d 100644 --- a/chocula/util.py +++ b/chocula/util.py @@ -346,7 +346,7 @@ def clean_str(s: Optional[str]) -> Optional[str]: # non-sorting s.replace("\u02dc", "") s.replace("\u0153", "") - # there is a very samll chance this will filter out valid strings + # there is a very small chance this will filter out valid strings if s.lower() in ("null", "n/a", "unknown"): return None return s or None diff --git a/notes/explore.md b/notes/explore.md index a649217..1aebf67 100644 --- a/notes/explore.md +++ b/notes/explore.md @@ -43,7 +43,7 @@ How about Hathitrust? 26628 48160184 36905342 Much larger potential impact, of 11+ million releases, though unclear how many -are acutally in the hathitrust archives. +are acutually in the hathitrust archives. ## 2020-06-23 -- cgit v1.2.3