-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(utils.py/json): docstrings, combine lines, add return type #52
- Loading branch information
1 parent
ad07bb1
commit 951bf86
Showing
2 changed files
with
77 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,128 +1,70 @@ | ||
{ | ||
"used by": "Scribe-Data/src/scribe_data/utils.py", | ||
"description": { | ||
"entry": { | ||
"language": "the supported language. All lowercase", | ||
"iso": "the ISO 639 code for 'language'. See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes . All lowercase", | ||
"qid": "the unique identifier of 'language' on Wikidata. 'Q' followed by one or more digits. See https://www.wikidata.org/wiki/Q43649390", | ||
"remove-words": "words that should not be included as autosuggestions for the given language.", | ||
"ignore-words": "TODO. Case sensitive." | ||
} | ||
"used by": "Scribe-Data/src/scribe_data/utils.py", | ||
"description": { | ||
"entry": { | ||
"language": "the supported language. All lowercase", | ||
"iso": "the ISO 639 code for 'language'. See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes . All lowercase", | ||
"qid": "the unique identifier of 'language' on Wikidata. 'Q' followed by one or more digits. See https://www.wikidata.org/wiki/Q43649390", | ||
"remove-words": "words that should not be included as autosuggestions for the given language.", | ||
"ignore-words": "TODO. Case sensitive." | ||
} | ||
}, | ||
"languages": [ | ||
{ | ||
"language": "english", | ||
"iso": "en", | ||
"qid": "Q1860", | ||
"remove-words": ["of", "the", "The", "and"], | ||
"ignore-words": [] | ||
}, | ||
"languages": [ | ||
{ | ||
"language": "english", | ||
"iso": "en", | ||
"qid": "Q1860", | ||
"remove-words": [ | ||
"of", | ||
"the", | ||
"The", | ||
"and" | ||
], | ||
"ignore-words": [] | ||
}, | ||
{ | ||
"language": "french", | ||
"iso": "fr", | ||
"qid": "Q150", | ||
"remove-words": [ | ||
"of", | ||
"the", | ||
"The", | ||
"and" | ||
], | ||
"ignore-words": [ | ||
"XXe" | ||
] | ||
}, | ||
{ | ||
"language": "german", | ||
"iso": "de", | ||
"qid": "Q188", | ||
"remove-words": [ | ||
"of", | ||
"the", | ||
"The", | ||
"and", | ||
"NeinJa", | ||
"et", | ||
"redirect" | ||
], | ||
"ignore-words": [ | ||
"Gemeinde", | ||
"Familienname" | ||
] | ||
}, | ||
{ | ||
"language": "italian", | ||
"iso": "it", | ||
"qid": "Q652", | ||
"remove-words": [ | ||
"of", | ||
"the", | ||
"The", | ||
"and", | ||
"text", | ||
"from" | ||
], | ||
"ignore-words": [ | ||
"The", | ||
"ATP" | ||
] | ||
}, | ||
{ | ||
"language": "portuguese", | ||
"iso": "pt", | ||
"qid": "Q5146", | ||
"remove-words": [ | ||
"of", | ||
"the", | ||
"The", | ||
"and", | ||
"jbutadptflora" | ||
], | ||
"ignore-words": [] | ||
}, | ||
{ | ||
"language": "russian", | ||
"iso": "ru", | ||
"qid": "Q7737", | ||
"remove-words": [ | ||
"of", | ||
"the", | ||
"The", | ||
"and" | ||
], | ||
"ignore-words": [] | ||
}, | ||
{ | ||
"language": "spanish", | ||
"iso": "es", | ||
"qid": "Q1321", | ||
"remove-words": [ | ||
"of", | ||
"the", | ||
"The", | ||
"and" | ||
], | ||
"ignore-words": [] | ||
}, | ||
{ | ||
"language": "swedish", | ||
"iso": "sv", | ||
"qid": "Q9027", | ||
"remove-words": [ | ||
"of", | ||
"the", | ||
"The", | ||
"and", | ||
"Checklist", | ||
"Catalogue" | ||
], | ||
"ignore-words": [ | ||
"databasdump" | ||
] | ||
} | ||
] | ||
{ | ||
"language": "french", | ||
"iso": "fr", | ||
"qid": "Q150", | ||
"remove-words": ["of", "the", "The", "and"], | ||
"ignore-words": ["XXe"] | ||
}, | ||
{ | ||
"language": "german", | ||
"iso": "de", | ||
"qid": "Q188", | ||
"remove-words": ["of", "the", "The", "and", "NeinJa", "et", "redirect"], | ||
"ignore-words": ["Gemeinde", "Familienname"] | ||
}, | ||
{ | ||
"language": "italian", | ||
"iso": "it", | ||
"qid": "Q652", | ||
"remove-words": ["of", "the", "The", "and", "text", "from"], | ||
"ignore-words": ["The", "ATP"] | ||
}, | ||
{ | ||
"language": "portuguese", | ||
"iso": "pt", | ||
"qid": "Q5146", | ||
"remove-words": ["of", "the", "The", "and", "jbutadptflora"], | ||
"ignore-words": [] | ||
}, | ||
{ | ||
"language": "russian", | ||
"iso": "ru", | ||
"qid": "Q7737", | ||
"remove-words": ["of", "the", "The", "and"], | ||
"ignore-words": [] | ||
}, | ||
{ | ||
"language": "spanish", | ||
"iso": "es", | ||
"qid": "Q1321", | ||
"remove-words": ["of", "the", "The", "and"], | ||
"ignore-words": [] | ||
}, | ||
{ | ||
"language": "swedish", | ||
"iso": "sv", | ||
"qid": "Q9027", | ||
"remove-words": ["of", "the", "The", "and", "Checklist", "Catalogue"], | ||
"ignore-words": ["databasdump"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters