-
Notifications
You must be signed in to change notification settings - Fork 71
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): move language data to JSON file (resolves #52)
- Loading branch information
1 parent
6714dea
commit f7a38b5
Showing
4 changed files
with
282 additions
and
140 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"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": [] | ||
}, | ||
{ | ||
"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" | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.