Difference between revisions of "Module:Citation/CS1/Suggestions"

From blackwiki
Jump to navigation Jump to search
test>Trappist the monk
(some Norwegian parameters;)
m (61 revisions imported)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
--Please insert new suggestions in alphabetical order
+
-- Please insert new suggestions in alphabetical order
--The form is ['incorrect'] = 'correct',
+
-- The form is ['incorrect'] = 'correct',
  
 
suggestions = {
 
suggestions = {
-- ['acccessdate'] = 'access-date',
+
['abruf'] = 'access-date', -- German
-- ['accesdate'] = 'access-date',
+
['abruf-verborgen'] = 'access-date', -- German
-- ['access date'] = 'access-date',
+
['accessmonth'] = 'access-date',
-- ['accessate'] = 'access-date',
+
['accesso'] = 'access-date', -- Italian
-- ['accessdare'] = 'access-date',
+
['accessyear'] = 'access-date',
-- ['accessdatte'] = 'access-date',
 
-- ['accessddate'] = 'access-date',
 
-- ['accessdte'] = 'access-date',
 
-- ['accessed'] = 'access-date',
 
-- ['accessedate'] = 'access-date',
 
-- ['accesssdate'] = 'access-date',
 
-- ['accssdate'] = 'access-date',
 
-- ['acessdate'] = 'access-date',
 
['accessmonth'] = 'access-date', -- (no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date')
 
['accessyear'] = 'access-date', -- (no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date')
 
 
['address'] = 'location',
 
['address'] = 'location',
['année'] = 'year', -- French
+
['année'] = 'date', -- French
['año'] = 'year',
+
['año'] = 'date',
 
['año-original'] = 'orig-year',
 
['año-original'] = 'orig-year',
['añoacceso'] = 'access-date', -- Spanish, Italian
+
['añoacceso'] = 'access-date', -- Spanish
['apellido'] = 'last', -- Spanish, Italian
+
['annoaccesso'] = 'access-date', -- Italian
['archiv-datum'] = 'archive-date', -- German
+
['annodiaccesso'] = 'access-date', -- Italian
 +
['apellido'] = 'last', -- Spanish
 +
['archiv-datum'] = 'archive-date', -- German
 
['archive date'] = 'archive-date',
 
['archive date'] = 'archive-date',
['archiv-url'] = 'archive-url', -- German
+
['archiv-url'] = 'archive-url', -- German
['archive url'] = 'archive-url', -- Spanish, Italian
+
['archive url'] = 'archive-url', -- Spanish
 +
['artikelnr'] = 'id', -- German (as 'id=Article No. ...')
 
['artist'] = 'others',
 
['artist'] = 'others',
['auflage'] = 'edition', -- German
+
['auflage'] = 'edition', -- German
['auteur'] = 'author', -- French
+
['auteur'] = 'author', -- French
 
['auther'] = 'author',
 
['auther'] = 'author',
-- ['authorformat'] = 'name-list-format', -- remove after 2016-01-01
+
['author link'] = 'author-link', -- Polish
-- ['author-format'] = 'name-list-format', -- remove after 2016-01-01
+
['author link2'] = 'author2-link', -- Polish
['author link'] = 'author-link', -- Polish
+
['autor'] = 'author', -- German (singular and plural)
['author link2'] = 'author2-link', -- Polish
+
['autore'] = 'author', -- Italian
-- ['autor'] = 'author', -- Spanish, Italian, Polish
 
['autor'] = 'authors', -- German (singular and plural)
 
-- ['autor2'] = 'author2', -- Spanish, Italian, Polish
 
-- ['autor3'] = 'author3', -- Polish
 
 
['autthor'] = 'author',
 
['autthor'] = 'author',
['band'] = 'volume', -- German
+
['band'] = 'volume', -- German
-- ['began'] = 'date', -- remove after 2016-01-01
+
['bandreihe'] = 'volume', -- German
['bind'] = 'volume', -- Norwegian
+
['ch'] = 'language', -- German (as 'language=de-CH')
 
['chapter_title'] = 'chapter',
 
['chapter_title'] = 'chapter',
['cita'] = 'quote', -- Spanish, Italian
+
['cita'] = 'quote', -- Spanish
['coautores'] = 'coauthors', -- Spanish, Italian
+
['citazione'] = 'quote', -- Italian
['consulté le'] = 'access-date', -- French
+
['coauthor'] = 'author',
['czasopismo'] = 'journal', -- Polish
+
['coauthors'] = 'author',
['data'] = 'date', -- Polish
+
['coautores'] = 'author', -- Spanish
['data dostępu'] = 'access-date', -- Polish
+
['coautori'] = 'author', -- Italian
['datum'] = 'date', -- German
+
['cognome'] = 'last', -- Italian
['deadlink'] = 'dead-url',
+
['consulté le'] = 'access-date', -- French
 +
['czasopismo'] = 'journal', -- Polish
 +
['data'] = 'date', -- Polish, Italian
 +
['dataarchivio'] = 'archive-date', -- Italian
 +
['data dostępu'] = 'access-date', -- Polish
 +
['datum'] = 'date', -- German
 +
['deadlink'] = 'url-status',
 +
['deadurl'] = 'url-status',
 +
['dead-url'] = 'url-status',
 
['distributor'] = 'publisher',
 
['distributor'] = 'publisher',
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}') (not yet supported by us directly)
+
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}')
['éditeur'] = 'editor', -- French
+
['doi_brokendate'] = 'doi-broken-date',
 +
['doi_inactivedate'] = 'doi-inactive-date',
 +
['éditeur'] = 'editor', -- French
 
['editon'] = 'edition',
 
['editon'] = 'edition',
 
['editoin'] = 'edition',
 
['editoin'] = 'edition',
-- ['editorformat'] = 'name-list-format', -- remove after 2016-01-01
+
['editora'] = 'publisher', -- Portuguese
-- ['editor-format'] = 'name-list-format', -- remove after 2016-01-01
 
-- ['editorgiven'] = 'editor-given', -- remove after 2016-01-01
 
 
['editorial'] = 'publisher',
 
['editorial'] = 'publisher',
-- ['editorsurname'] = 'editor-surname', -- remove after 2016-01-01
+
['en ligne le'] = 'archive-date', -- French
['en ligne le'] = 'archive-date', -- French
 
 
['encyclopædia'] = 'encyclopedia',
 
['encyclopædia'] = 'encyclopedia',
-- ['ended'] = 'date', -- remove after 2016-01-01
+
['enlaceautor'] = 'author-link', -- Spanish
['enlaceautor'] = 'author-link', -- Spanish, Italian
+
['fecha'] = 'date', -- Spanish
['fecha'] = 'date', -- Spanish, Italian
+
['fechaacceso'] = 'access-date', -- Spanish
['fechaacceso'] = 'access-date', -- Spanish, Italian
+
['fechaarchivo'] = 'archive-date', -- Spanish
['fechaarchivo'] = 'archive-date', -- Spanish, Italian
 
 
['filetype'] = 'format',
 
['filetype'] = 'format',
 
['first 1'] = 'first1',
 
['first 1'] = 'first1',
 
['foramt'] = 'format',
 
['foramt'] = 'format',
['forfatter'] = 'author', -- Norwegian
+
['formato'] = 'format', -- Spanish, Italian, Polish
['formato'] = 'format', -- Spanish, Italian, Polish
 
 
['frist'] = 'first',
 
['frist'] = 'first',
['herausgeber'] = 'editors', -- German (singular and plural)
+
['fundstelle'] = 'at', -- German
['idioma'] = 'language', -- Spanish, Italian
+
['herausgeber'] = 'editor', -- German (singular and plural)
['imię'] = 'first', -- Polish
+
['hrsg'] = 'publisher', -- German
['isbnistformalfalsch'] = 'ignore-isbn-error', -- German
+
['hrsgreihe'] = 'editor', -- German
 +
['idioma'] = 'language', -- Spanish, Italian
 +
['imię'] = 'first', -- Polish
 +
['isbndefekt'] = 'ignore-isbn-error', -- German
 +
['isbnformalfalsch'] = 'ignore-isbn-error', -- German
 +
['isbnistformalfalsch'] = 'ignore-isbn-error', -- German
 
['isnb'] = 'isbn',
 
['isnb'] = 'isbn',
['jahr'] = 'year', -- German
+
['issnformalfalsch'] = 'ignore-issn-error', -- German
['kapitel'] = 'chapter', -- German
+
['jahr'] = 'date', -- German
-- ['kommentar'] = 'comment', -- German (not yet supported by us)
+
['jahrea'] = 'orig-year', -- German (not a direct replacement, but can be emulated)
['lang'] = 'language',
+
['kapitel'] = 'chapter', -- German
 
['langauge'] = 'language',
 
['langauge'] = 'language',
['langue'] = 'language', -- French
+
['langue'] = 'language', -- French
 
['last 1'] = 'last1',
 
['last 1'] = 'last1',
['lieu'] = 'location', -- French
+
['lieu'] = 'location', -- French
['lire en ligne'] = 'url', -- French
+
['lingua'] = 'language', -- Italian
['lizenznummer'] = 'id', -- German (as 'id=License ...')
+
['lire en ligne'] = 'url', -- French
 
['loaction'] = 'location',
 
['loaction'] = 'location',
 
['locatoin'] = 'location',
 
['locatoin'] = 'location',
['lugar'] = 'location', -- Spanish
+
['lugar'] = 'location', -- Spanish
['miejsce'] = 'location', -- Polish
+
['miejsce'] = 'location', -- Polish
['miesiąc'] = 'date', -- Polish
+
['miesiąc'] = 'date', -- Polish
['mois'] = 'date', -- French
+
['mois'] = 'date', -- French
['monat'] = 'date', -- German
+
['monat'] = 'date', -- German
-- ['name'] = 'author', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion
+
-- ['name'] = 'author', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion
['nazwisko'] = 'last', -- Polish
+
['nazwisko'] = 'last', -- Polish
 
['nespaper'] = 'newspaper',
 
['nespaper'] = 'newspaper',
 
['newpaper'] = 'newspaper',
 
['newpaper'] = 'newspaper',
 
['news'] = 'newspaper',
 
['news'] = 'newspaper',
['nom'] = 'last', -- French
+
['nom'] = 'last', -- French
['nom1'] = 'last1', -- French
+
['nom1'] = 'last1', -- French
['nombre'] = 'first', -- Spanish, Italian
+
['nombre'] = 'first', -- Spanish
['nummer'] = 'number', -- German, Norwegian
+
['nome'] = 'first', -- Italian
['obra'] = 'work', -- Spanish, Italian
+
['nummer'] = 'number', -- German
['odpowiedzialność'] = 'agency', -- Polish
+
['nummerreihe'] = 'number', -- German
['offline'] = 'dead-url', -- German
+
['obra'] = 'work', -- Spanish
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
+
['odpowiedzialność'] = 'agency', -- Polish
['opublikowany'] = 'agency', -- Polish
+
['offline'] = 'url-status', -- German (as 'url-status=dead')
 +
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
 +
['opublikowany'] = 'agency', -- Polish
 +
['opera'] = 'work', -- Italian
 
['origdate'] = 'orig-year',
 
['origdate'] = 'orig-year',
['originaljahr'] = 'orig-year', -- German
+
['originaljahr'] = 'orig-year', -- German
['originalort'] = 'location', -- German (if 'ort' is specified at the same time, the latter should be put in 'publication-place')
+
['originalort'] = 'publication-place', -- German
['originalsprache'] = 'language', -- German
+
['originalsprache'] = 'language', -- German
['originaltitel'] = 'title', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')
+
['originaltitel'] = 'title', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')
['ort'] = 'location', -- German
+
['ort'] = 'publication-place', -- German
 +
['ortea'] = 'publication-place', -- German (not a direct replacement, but can be emulated)
 
['other'] = 'others',
 
['other'] = 'others',
['oznaczenie'] = 'agency', -- Polish
+
['oznaczenie'] = 'agency', -- Polish
 
['pagees'] = 'pages',
 
['pagees'] = 'pages',
['página'] = 'page', -- Spanish, Italian
+
['página'] = 'page', -- Spanish, Italian
['páginas'] = 'pages', -- Spanish, Italian
+
['páginas'] = 'pages', -- Spanish, Italian
['passage'] = 'pages', -- French
+
['passage'] = 'pages', -- French
['périodique'] = 'publisher', -- French
+
['pagina'] = 'pages', -- Italian
 +
['pagine'] = 'pages', -- Italian
 +
['périodique'] = 'publisher', -- French
 
['plublisher'] = 'publisher',
 
['plublisher'] = 'publisher',
 
['pmcid'] = 'pmc',
 
['pmcid'] = 'pmc',
['praca'] = 'work', -- Polish
+
['praca'] = 'work', -- Polish
['prénom'] = 'first', -- French
+
['prénom'] = 'first', -- French
['prénom1'] = 'first1', -- French
+
['prénom1'] = 'first1', -- French
 
['ps'] = 'postscript',
 
['ps'] = 'postscript',
 
['pub'] = 'publisher',
 
['pub'] = 'publisher',
['publikasjon'] = 'journal', -- Norwegian: publication
 
-- ['pubisher'] = 'publisher',
 
-- ['publiser'] = 'publisher',
 
-- ['publishers'] = 'publisher',
 
-- ['publsher'] = 'publisher',
 
-- ['publsiher'] = 'publisher',
 
 
['pulbication-place'] = 'publication-place',
 
['pulbication-place'] = 'publication-place',
-- ['pulbisher'] = 'publisher',
+
['reihe'] = 'series', -- German
-- ['pulisher'] = 'publisher',
 
['reihe'] = 'series', -- German
 
 
['retrieved'] = 'access-date',
 
['retrieved'] = 'access-date',
['rok'] = 'date', -- Polish
+
['rok'] = 'date', -- Polish
['sammelwerk'] = 'work', -- German
+
['sammelwerk'] = 'work', -- German
['seiten'] = 'pages', -- German
+
['seria'] = 'series', -- Polish
-- ['separator'] = 'mode', -- remove after 2016-01-01
+
['série'] = 'series', -- French
['seria'] = 'series', -- Polish
 
['série'] = 'work', -- French *RECHECK*
 
 
['service'] = 'agency',
 
['service'] = 'agency',
['side'] = 'page', -- Norwegian
+
['sitioweb'] = 'website', -- Spanish
['sitioweb'] = 'website', --Spanish
+
['sito'] = 'website', -- Italian
['stron'] = 'page', -- Polish
+
['stron'] = 'page', -- Polish
['strony'] = 'pages', -- Polish
+
['strony'] = 'pages', -- Polish
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
+
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
['sprache'] = 'language', -- German
+
['sprache'] = 'language', -- German
['suscripción'] = 'subscription', -- Spanish, Italian, Polish
+
['suscripción'] = 'url-access', -- Spanish, Polish (as |url-access=subscription)
['tag'] = 'date', -- German
+
['tag'] = 'date', -- German
 +
['template doc demo'] = 'template-doc-demo',
 
['tile'] = 'title',
 
['tile'] = 'title',
 
['tite'] = 'title',
 
['tite'] = 'title',
['titel'] = 'title', -- German
+
['titel'] = 'title', -- German
['titel-p'] = 'title', -- German ('postscript=none' should be added as well)
+
['titel-p'] = 'title', -- German ('postscript=none' should be added as well)
['titelerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
+
['titelerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['titolo'] = 'title', -- Spanish, Italian
+
['titolo'] = 'title', -- Spanish, Italian
['titre'] = 'title', -- French
+
['titre'] = 'title', -- French
['tittel'] = 'title', -- Norwegian
 
 
['títle'] = 'title',
 
['títle'] = 'title',
['título'] = 'title', -- Spanish, Italian
+
['título'] = 'title', -- Spanish
 
['transchapter'] = 'trans-chapter',
 
['transchapter'] = 'trans-chapter',
['translator'] = 'others',
+
['trans_chapter'] = 'trans-chapter',
 +
['trans_title'] = 'trans-title',
 
['transtitle'] = 'trans-title',
 
['transtitle'] = 'trans-title',
['typ'] = 'author-mask', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')
+
['typ'] = 'author-mask', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')
['tytuł'] = 'title', -- Polish
+
['tytuł'] = 'title', -- Polish
['ubicación'] = 'location', -- Spanish, Italian
+
['ubicación'] = 'location', -- Spanish
['urlarchivo'] = 'archive-url', -- Spanish, Italian
+
['urlarchivo'] = 'archive-url', -- Spanish
['urn'] = 'id', -- German (as 'id={{URN|...}}') (not yet supported by us directly)
+
['urlarchivio'] = 'archive-url', -- Italian
['übersetzer'] = 'translator', -- German (singular and plural)
+
['urn'] = 'id', -- German (as 'id={{URN|...}}')
['utgivelsesår'] = 'year', -- Norwegian: release year
+
['übersetzer'] = 'translator', -- German (singular and plural)
['verlag'] = 'publisher', -- German
+
['verlag'] = 'publisher', -- German
 +
['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated)
 
['vol'] = 'volume',  
 
['vol'] = 'volume',  
['volumen'] = 'volume', -- Spanish
+
['volumen'] = 'volume', -- Spanish
['werk'] = 'work', -- German
+
['werk'] = 'work', -- German
['werkerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
+
['werkerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['wolumin'] = 'volume', -- Polish
+
['wkautore'] = 'author-link', -- Italian
['wydanie'] = 'number', -- Polish
+
['wolumin'] = 'volume', -- Polish
['wydawca'] = 'publisher', -- French
+
['wydanie'] = 'number', -- Polish
['zaprezentowany'] = 'publisher', -- French
+
['wydawca'] = 'publisher', -- French
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}') (not yet supported by us directly)
+
['zaprezentowany'] = 'publisher', -- French
['zitat'] = 'quote', -- German
+
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}')
['zugriff'] = 'access-date', -- German
+
['zitat'] = 'quote', -- German
 +
['zugriff'] = 'access-date', -- German
 
}
 
}
 +
  
  
 
--[[--------------------------< P A T T E R N S >--------------------------------------------------------------
 
--[[--------------------------< P A T T E R N S >--------------------------------------------------------------
  
Here we use Lua patterns to make suggestions.  The form is ['pattern'] = 'correct',
+
Here we use Lua patterns to make suggestions.  The form is
 +
 
 +
['pattern'] = 'correct',
  
Lua patterns are not regex though they are similar.  The escape character is '%', not '\'. For more information about
+
Lua patterns are not REGEX though they are similar.  The escape character is '%', not '\'.
lua patterns, see: Extension:Scribunto/Lua_reference_manual#Patterns
+
For more information about Lua patterns, see: Extension:Scribunto/Lua_reference_manual#Patterns
  
Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial match from incorrectly
+
Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial
suggesting the wrong parameter name.  For instance, the pattern 'a[utho]+r' matches 'author' in the no-longer-supported
+
match from incorrectly suggesting the wrong parameter name.  For instance, the pattern 'a[utho]+r'
parameter |author-separator= so the code suggests '|author='; the same pattern also matches the no-longer-supported
+
matches 'author' in the no-longer-supported parameter |author-separator= so the code suggests
parameter |separator= (returning 'ator') so again, the code suggests '|author='.
+
'|author='; the same pattern also matches the no-longer-supported parameter |separator= (returning 'ator')
 +
so again, the code suggests '|author='.
  
One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.) The value from the
+
One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.)
capture replaces $1 in the 'correct' value.
+
The value from the capture replaces $1 in the 'correct' value.
  
 
]]
 
]]
Line 213: Line 215:
 
['^ac+es+ ?d?a?t?e?$'] = 'access-date',
 
['^ac+es+ ?d?a?t?e?$'] = 'access-date',
 
['^a[utho]+r$'] = 'author',
 
['^a[utho]+r$'] = 'author',
['^a[utho]+r(%d+)$'] = 'author$1', -- enumerated
+
['^a[utho]+r(%d+)$'] = 'author$1', -- enumerated
 
['^pu[blish]+ers?$'] = 'publisher',
 
['^pu[blish]+ers?$'] = 'publisher',
 
}
 
}
  
 
return {suggestions = suggestions, patterns=patterns};
 
return {suggestions = suggestions, patterns=patterns};

Latest revision as of 12:08, 6 September 2020

{{#lst:Module:Citation/CS1/doc|header}}

This is a list of suggested alternatives to use when an unknown parameter is encountered by a citation template. When an unknown parameter is found within a citation template an error message is generated, and when possible the software makes a suggestion for what the user may have meant by consulting this list of common mistakes and typos.

Each entry takes the form: ['bad input parameter'] = 'suggested parameter to use'

The bad input parameter will have been transformed to lower case before checking this list, so all input forms on this list should be written in lowercase.

{{#lst:Module:Citation/CS1/doc|module_components_table}}


-- Please insert new suggestions in alphabetical order
-- The form is ['incorrect'] = 'correct',

suggestions = {
	['abruf'] = 'access-date',													-- German
	['abruf-verborgen'] = 'access-date',										-- German
	['accessmonth'] = 'access-date',
	['accesso'] = 'access-date',												-- Italian
	['accessyear'] = 'access-date',
	['address'] = 'location',
	['année'] = 'date',															-- French
	['año'] = 'date',
	['año-original'] = 'orig-year',
	['añoacceso'] = 'access-date',												-- Spanish
	['annoaccesso'] = 'access-date',											-- Italian
	['annodiaccesso'] = 'access-date',											-- Italian
	['apellido'] = 'last',														-- Spanish
	['archiv-datum'] = 'archive-date',											-- German
	['archive date'] = 'archive-date',
	['archiv-url'] = 'archive-url',												-- German
	['archive url'] = 'archive-url',											-- Spanish
	['artikelnr'] = 'id',														-- German (as 'id=Article No. ...')
	['artist'] = 'others',
	['auflage'] = 'edition',													-- German
	['auteur'] = 'author',														-- French
	['auther'] = 'author',
	['author link'] = 'author-link',											-- Polish
	['author link2'] = 'author2-link',											-- Polish
	['autor'] = 'author',														-- German (singular and plural)
	['autore'] = 'author',														-- Italian
	['autthor'] = 'author',
	['band'] = 'volume',														-- German
	['bandreihe'] = 'volume',													-- German
	['ch'] = 'language',														-- German (as 'language=de-CH')
	['chapter_title'] = 'chapter',
	['cita'] = 'quote',															-- Spanish
	['citazione'] = 'quote',													-- Italian
	['coauthor'] = 'author',
	['coauthors'] = 'author',
	['coautores'] = 'author',													-- Spanish
	['coautori'] = 'author',													-- Italian
	['cognome'] = 'last',														-- Italian
	['consulté le'] = 'access-date',											-- French
	['czasopismo'] = 'journal',													-- Polish
	['data'] = 'date',															-- Polish, Italian
	['dataarchivio'] = 'archive-date',											-- Italian
	['data dostępu'] = 'access-date',											-- Polish
	['datum'] = 'date',															-- German
	['deadlink'] = 'url-status',
	['deadurl'] = 'url-status',
	['dead-url'] = 'url-status',
	['distributor'] = 'publisher',
	['dnb'] = 'id',																-- German (as 'id={{DNB-IDN|...}}')
	['doi_brokendate'] = 'doi-broken-date',
	['doi_inactivedate'] = 'doi-inactive-date',
	['éditeur'] = 'editor',														-- French
	['editon'] = 'edition',
	['editoin'] = 'edition',
	['editora'] = 'publisher',													-- Portuguese
	['editorial'] = 'publisher',
	['en ligne le'] = 'archive-date',											-- French
	['encyclopædia'] = 'encyclopedia',
	['enlaceautor'] = 'author-link',											-- Spanish
	['fecha'] = 'date',															-- Spanish
	['fechaacceso'] = 'access-date',											-- Spanish
	['fechaarchivo'] = 'archive-date',											-- Spanish
	['filetype'] = 'format',
	['first 1'] = 'first1',
	['foramt'] = 'format',
	['formato'] = 'format',														-- Spanish, Italian, Polish
	['frist'] = 'first',
	['fundstelle'] = 'at',														-- German
	['herausgeber'] = 'editor',													-- German (singular and plural)
	['hrsg'] = 'publisher',														-- German
	['hrsgreihe'] = 'editor',													-- German
	['idioma'] = 'language',													-- Spanish, Italian
	['imię'] = 'first',															-- Polish
	['isbndefekt'] = 'ignore-isbn-error',										-- German
	['isbnformalfalsch'] = 'ignore-isbn-error',									-- German
	['isbnistformalfalsch'] = 'ignore-isbn-error',								-- German
	['isnb'] = 'isbn',
	['issnformalfalsch'] = 'ignore-issn-error',									-- German
	['jahr'] = 'date',															-- German
	['jahrea'] = 'orig-year',													-- German (not a direct replacement, but can be emulated)
	['kapitel'] = 'chapter',													-- German
	['langauge'] = 'language',
	['langue'] = 'language',													-- French
	['last 1'] = 'last1',
	['lieu'] = 'location',														-- French
	['lingua'] = 'language',													-- Italian
	['lire en ligne'] = 'url',													-- French
	['loaction'] = 'location',
	['locatoin'] = 'location',
	['lugar'] = 'location',														-- Spanish
	['miejsce'] = 'location',													-- Polish
	['miesiąc'] = 'date',														-- Polish
	['mois'] = 'date',															-- French
	['monat'] = 'date',															-- German
--	['name'] = 'author',														-- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion
	['nazwisko'] = 'last',														-- Polish
	['nespaper'] = 'newspaper',
	['newpaper'] = 'newspaper',
	['news'] = 'newspaper',
	['nom'] = 'last',															-- French
	['nom1'] = 'last1',															-- French
	['nombre'] = 'first',														-- Spanish
	['nome'] = 'first',															-- Italian
	['nummer'] = 'number',														-- German
	['nummerreihe'] = 'number',													-- German
	['obra'] = 'work',															-- Spanish
	['odpowiedzialność'] = 'agency',											-- Polish
	['offline'] = 'url-status',													-- German (as 'url-status=dead')
	['online'] = 'url',															-- German (not a direct replacement, but can be emulated)
	['opublikowany'] = 'agency',												-- Polish
	['opera'] = 'work',															-- Italian
	['origdate'] = 'orig-year',
	['originaljahr'] = 'orig-year',												-- German
	['originalort'] = 'publication-place',										-- German
	['originalsprache'] = 'language',											-- German
	['originaltitel'] = 'title',												-- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')
	['ort'] = 'publication-place',												-- German
	['ortea'] = 'publication-place',											-- German (not a direct replacement, but can be emulated)
	['other'] = 'others',
	['oznaczenie'] = 'agency',													-- Polish
	['pagees'] = 'pages',
	['página'] = 'page',														-- Spanish, Italian
	['páginas'] = 'pages',														-- Spanish, Italian
	['passage'] = 'pages',														-- French
	['pagina'] = 'pages',														-- Italian
	['pagine'] = 'pages',														-- Italian
	['périodique'] = 'publisher',												-- French
	['plublisher'] = 'publisher',
	['pmcid'] = 'pmc',
	['praca'] = 'work',															-- Polish
	['prénom'] = 'first',														-- French
	['prénom1'] = 'first1',														-- French
	['ps'] = 'postscript',
	['pub'] = 'publisher',
	['pulbication-place'] = 'publication-place',
	['reihe'] = 'series',														-- German
	['retrieved'] = 'access-date',
	['rok'] = 'date',															-- Polish
	['sammelwerk'] = 'work',													-- German
	['seria'] = 'series',														-- Polish
	['série'] = 'series',														-- French
	['service'] = 'agency',
	['sitioweb'] = 'website',													-- Spanish
	['sito'] = 'website',														-- Italian
	['stron'] = 'page',															-- Polish
	['strony'] = 'pages',														-- Polish
	['spalten'] = 'at',															-- German (not a direct replacement, but can be emulated)
	['sprache'] = 'language',													-- German
	['suscripción'] = 'url-access',												-- Spanish, Polish (as |url-access=subscription)
	['tag'] = 'date',															-- German
	['template doc demo'] = 'template-doc-demo',
	['tile'] = 'title',
	['tite'] = 'title',
	['titel'] = 'title',														-- German
	['titel-p'] = 'title',														-- German ('postscript=none' should be added as well)
	['titelerg'] = 'contribution',												-- German (not a direct replacement, but can be emulated)
	['titolo'] = 'title',														-- Spanish, Italian
	['titre'] = 'title',														-- French
	['títle'] = 'title',
	['título'] = 'title',														-- Spanish
	['transchapter'] = 'trans-chapter',
	['trans_chapter'] = 'trans-chapter',
	['trans_title'] = 'trans-title',
	['transtitle'] = 'trans-title',
	['typ'] = 'author-mask',													-- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')
	['tytuł'] = 'title',														-- Polish
	['ubicación'] = 'location',													-- Spanish
	['urlarchivo'] = 'archive-url',												-- Spanish
	['urlarchivio'] = 'archive-url',											-- Italian
	['urn'] = 'id',																-- German (as 'id={{URN|...}}')
	['übersetzer'] = 'translator',												-- German (singular and plural)
	['verlag'] = 'publisher',													-- German
	['verlagea'] = 'publisher',													-- German (not a direct replacement, but can be emulated)
	['vol'] = 'volume', 
	['volumen'] = 'volume',														-- Spanish
	['werk'] = 'work',															-- German
	['werkerg'] = 'contribution',												-- German (not a direct replacement, but can be emulated)
	['wkautore'] = 'author-link',												-- Italian
	['wolumin'] = 'volume',														-- Polish
	['wydanie'] = 'number',														-- Polish
	['wydawca'] = 'publisher',													-- French
	['zaprezentowany'] = 'publisher',											-- French
	['zdb'] = 'id',																-- German (as 'id={{ZDB|...}}')
	['zitat'] = 'quote',														-- German
	['zugriff'] = 'access-date',												-- German
}



--[[--------------------------< P A T T E R N S >--------------------------------------------------------------

Here we use Lua patterns to make suggestions.  The form is

	['pattern'] = 'correct',

Lua patterns are not REGEX though they are similar.  The escape character is '%', not '\'.
For more information about Lua patterns, see: Extension:Scribunto/Lua_reference_manual#Patterns

Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial
match from incorrectly suggesting the wrong parameter name.  For instance, the pattern 'a[utho]+r'
matches 'author' in the no-longer-supported parameter |author-separator= so the code suggests
'|author='; the same pattern also matches the no-longer-supported parameter |separator= (returning 'ator')
so again, the code suggests '|author='.

One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.)
The value from the capture replaces $1 in the 'correct' value.

]]

local patterns = {
	['^ac+es+ ?d?a?t?e?$'] = 'access-date',
	['^a[utho]+r$'] = 'author',
	['^a[utho]+r(%d+)$'] = 'author$1',											-- enumerated
	['^pu[blish]+ers?$'] = 'publisher',
	}

return {suggestions = suggestions, patterns=patterns};