From Afropedia.world
Jump to: navigation, search
wk>Trappist the monk
wk>Trappist the monk (sync from sandbox;)
Djehuti
Djehuti (talk | contribs) (1 revision imported)
m
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 = {
['ASIN-TLD'] = 'asin-tld', -- old parameter name
    ['acccessdate'] = 'accessdate',
['abruf'] = 'access-date', -- German
    ['accesdate'] = 'accessdate',
['abruf-verborgen'] = 'access-date', -- German
    ['access date'] = 'accessdate',
['accessmonth'] = 'access-date',
    ['access-date'] = 'accessdate',
['accesso'] = 'access-date', -- Italian
    ['accessate'] = 'accessdate',
['accessyear'] = 'access-date',
    ['accessdare'] = 'accessdate',
['acessodata'] = 'access-date', -- Brazilian Portuguese
    ['accessdatte'] = 'accessdate',
['ad'] = 'first', -- Turkish
    ['accessddate'] = 'accessdate',
['address'] = 'location',
    ['accessdte'] = 'accessdate',
['anno'] = 'date', -- Italian
    ['accessed'] = 'accessdate',
['annoaccesso'] = 'access-date', -- Italian
    ['accessedate'] = 'accessdate',
['annodiaccesso'] = 'access-date', -- Italian
    ['accesssdate'] = 'accessdate',
['annooriginale'] = 'orig-date', -- Italian
    ['accssdate'] = 'accessdate',
['année'] = 'date', -- French
    ['acessdate'] = 'accessdate',
['apellido'] = 'last', -- Spanish
    ['address'] = 'location',
['apellidos'] = 'last', -- Spanish
    ['année'] = 'year', -- French
['archiv-datum'] = 'archive-date', -- German
    ['añoacceso'] = 'accessyear', -- Spanish, Italian
['archiv-url'] = 'archive-url', -- German
    ['apellido'] = 'last', -- Spanish, Italian
['archive date'] = 'archive-date',                                         -- misspelling
    ['archive date'] = 'archivedate',
['archive url'] = 'archive-url', -- misspelling
    ['archive url'] = 'archiveurl', -- Spanish, Italian
['archive-link'] = 'archive-url',                                         -- old parameter name
    ['auteur'] = 'author', -- French
     ['archiv-url'] = 'archive-url', -- German
    ['auther'] = 'author',
     ['arkivdatum'] = 'archive-date', -- Swedish, Norwegian
    ['author link'] = 'authorlink',
     ['arkivurl'] = 'archive-url',     -- Swedish, Norwegian
     ['autor'] = 'author', -- Spanish, Italian
     ['artist'] = 'others',
     ['autor2'] = 'author2', -- Spanish, Italian
['arşiv-tarihi'] = 'archive-date', -- Turkish
     ['autthor'] = 'author',
['arşiv-url'] = 'archive-url', -- Turkish
     ['cita'] = 'quote', -- Spanish, Italian
['arşivtarihi'] = 'archive-date', -- Turkish
    ['coautores'] = 'coauthors', -- Spanish, Italian
['arşivurl'] = 'archive-url', -- Turkish
    ['consulté le'] = 'accessdate', -- French
['auflage'] = 'edition', -- German
    ['distributor'] = 'publisher',
['auteur'] = 'author', -- French
    ['éditeur'] = 'editor', -- French
['auther'] = 'author',                                                     -- misspelling
    ['editon'] = 'edition',
['author link'] = 'author-link', -- Polish
    ['editoin'] = 'edition',
['authorfirst'] = 'author-first', -- old parameter name
    ['editorial'] = 'publisher',
['authorgiven'] = 'author-given', -- old parameter name
    ['en ligne le'] = 'archivedate', -- French
['authorlast'] = 'author-last', -- old parameter name
    ['enlaceautor'] = 'authorlink', -- Spanish, Italian
['authormask'] = 'author-mask', -- old parameter name
    ['fecha'] = 'date', -- Spanish, Italian
['authorsurname'] = 'author-surname', -- old parameter name
    ['fechaacceso'] = 'accessdate', -- Spanish, Italian
['autor'] = 'author', -- Spanish, German (singular and plural)
    ['fechaarchivo'] = 'archivedate', -- Spanish, Italian
['autore'] = 'author', -- Italian
    ['filetype'] = 'format',
['autthor'] = 'author',                                                     -- misspelling
    ['first 1'] = 'first1',
['ay'] = 'month', -- Turkish
    ['foramt'] = 'format',
['año'] = 'date', -- Spanish
    ['formato'] = 'format', -- Spanish, Italian
['año-original'] = 'orig-date', -- Spanish
    ['frist'] = 'first',
['añoacceso'] = 'access-date', -- Spanish
    ['idioma'] = 'language', -- Spanish, Italian
['añooriginal'] = 'orig-date', -- Spanish
    ['isnb'] = 'isbn',
['band'] = 'volume', -- German
    ['lang'] = 'language',
['bandreihe'] = 'volume', -- German
    ['langauge'] = 'language',
['baskı'] = 'edition', -- Turkish
    ['langue'] = 'language', -- French
['başlık'] = 'title', -- Turkish
    ['last 1'] = 'last1',
['began'] = 'date', -- old parameter name (cite serial only); or orig-date=
    ['lieu'] = 'location', -- French
['booktitle'] = 'book-title', -- old parameter name
    ['lire en ligne'] = 'url', -- French
['ch'] = 'language', -- German (as 'language=de-CH')
    ['loaction'] = 'location',
['chapter_title'] = 'chapter',
    ['locatoin'] = 'location',
['chapterurl'] = 'chapter-url', -- old parameter name
    ['mois'] = 'month', -- French
['cid'] = 'ref', -- Italian
--   ['name'] = 'author', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion
['cilt'] = 'volume', -- Turkish
    ['nespaper'] = 'newspaper',
['cita'] = 'quote', -- Spanish
    ['newpaper'] = 'newspaper',
['citazione'] = 'quote', -- Italian
    ['news'] = 'newspaper',
['città'] = 'location', -- Italian
    ['nom'] = 'last', -- French
['city'] = 'location', -- old parameter name (cite serial only)
    ['nom1'] = 'last1', -- French
['coauthor'] = 'author',
    ['nombre'] = 'first', -- Spanish, Italian
['coauthors'] = 'author',
    ['obra'] = 'work', -- Spanish, Italian
['coautores'] = 'author', -- Spanish
    ['origdate'] = 'origyear',
['coautori'] = 'author', -- Italian
    ['other'] = 'others',
['cognome'] = 'last', -- Italian
    ['pagees'] = 'pages',
['conferenceurl'] = 'conference-url', -- old parameter name
    ['página'] = 'page', -- Spanish, Italian
['consulté le'] = 'access-date', -- French
    ['páginas'] = 'pages', -- Spanish, Italian
['contributionurl'] = 'contribution-url', -- old parameter name
    ['passage'] = 'pages', -- French
['curatore'] = 'publisher', -- Italian
    ['périodique'] = 'publisher', -- French
['czasopismo'] = 'journal', -- Polish
    ['plublisher'] = 'publisher',
['data dostępu'] = 'access-date', -- Polish
    ['pmcid'] = 'pmc',
['data'] = 'date', -- Polish, Italian
    ['prénom'] = 'first', -- French
['dataaccesso'] = 'access-date', -- Italian
    ['prénom1'] = 'first1', -- French
['dataarchivio'] = 'archive-date', -- Italian
    ['pub'] = 'publisher',
['datum'] = 'date', -- German, Swedish
    ['pubisher'] = 'publisher',
['dead-url'] = 'url-status', -- old parameter name
    ['publiser'] = 'publisher',
['deadlink'] = 'url-status',                                               -- old parameter name
    ['publishers'] = 'publisher',
['deadurl'] = 'url-status', -- old parameter name
    ['publsher'] = 'publisher',
['dergi'] = 'work', -- Turkish
    ['publsiher'] = 'publisher',
['dil'] = 'language', -- Turkish
    ['pulbication-place'] = 'publication-place',
['displayauthors'] = 'display-authors', -- old parameter name
    ['pulbisher'] = 'publisher',
['displayeditors'] = 'display-editors', -- old parameter name
    ['retrieved'] = 'accessdate',
['distributor'] = 'publisher',
    ['série'] = 'work', -- French
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}')
    ['service'] = 'agency',
['doi-broken'] = 'doi-broken-date', -- old parameter alias
    ['suscripción'] = 'subscription', -- Spanish, Italian
['doi-inactive'] = 'doi-broken-date', -- invalid name found in mainspace
    ['tile'] = 'title',
['doi-inactive-date'] = 'doi-broken-date', -- old parameter alias
    ['tite'] = 'title',
['doi_brokendate'] = 'doi-broken-date', -- old parameter alias
    ['titolo'] = 'title', -- Spanish, Italian
['doi_inactivedate'] = 'doi-inactive-date', -- old parameter alias
    ['titre'] = 'title', -- French
['doibroken'] = 'doi-broken-date', -- invalid name found in mainspace
    ['título'] = 'title', -- Spanish, Italian
['doiinactive'] = 'doi-broken-date', -- invalid name found in mainspace
    ['transchapter'] = 'trans-chapter',
['e-print'] = 'eprint', -- misspelling
    ['translator'] = 'others',
-- ['ed'] = 'edition', -- avoid suggestion as in English this could be short for editor or edition
    ['transtitle'] = 'trans-title',
-- ['editora'] = 'publisher', -- can be either editor or publisher
    ['ubicación'] = 'location', -- Spanish, Italian
-- ['editore'] = 'agency', -- can be either publisher or agency
    ['urlarchivo'] = 'archiveurl', -- Spanish, Italian
-- ['editori'] = 'editor', -- can be either editor or publisher
    ['vol'] = 'volume',  
-- ['editorial'] = 'publisher', -- can be either publisher or work
['editoin'] = 'edition', -- misspelling
['editon'] = 'edition', -- misspelling
['editorfirst'] = 'editor-first', -- old parameter name
['editorgiven'] = 'editor-given', -- old parameter name
['editorlast'] = 'editor-last', -- old parameter name
['editorlink'] = 'editor-link', -- old parameter name
['editormask'] = 'editor-mask', -- old parameter name
['editors'] = 'editor', -- old parameter name (can be emulated using multiple singular |editor= params)
['editorsurname'] = 'editor-surname', -- old parameter name
['edizione'] = 'edition', -- Italian
['embargo'] = 'pmc-embargo-date', -- old parameter name
['ended'] = 'date', -- old parameter name (cite serial only)
['en ligne le'] = 'archive-date', -- French
['encyclopædia'] = 'encyclopedia',
['enlaceautor'] = 'author-link', -- Spanish
['enlaceroto'] = 'url-status', -- Spanish
['episodelink'] = 'episode-link', -- old parameter name
['erişimtarihi'] = 'access-date', -- Turkish
['eser'] = 'work', -- Turkish
['family'] = 'surname', -- misguess
['fecha'] = 'date', -- Spanish
['fechaacceso'] = 'access-date', -- Spanish
['fechaarchivo'] = 'archive-date', -- Spanish
['filetype'] = 'format',
['foramt'] = 'format', -- misspelling
['fore-name'] = 'given', -- misguess/misspelling
['forename'] = 'given', -- misguess
['författare'] = 'author',                                                  -- Swedish, Norwegian
    ['formato'] = 'format', -- Spanish, Italian, Polish
['frist'] = 'first', -- misspelling
['fundstelle'] = 'at', -- German
['gazete'] = 'work', -- Turkish
['giornale'] = 'journal', -- Italian
    ['hämtdatum'] = 'access-date',     -- Swedish
    ['herausgeber'] = 'editor', -- German (singular and plural)
['hrsg'] = 'publisher', -- German
['hrsgreihe'] = 'editor', -- German
['idioma'] = 'language', -- Spanish
['ignore-isbn-error'] = 'isbn', -- old parameter (can be fully emulated using ((syntax)))
['ignoreisbnerror'] = 'isbn', -- old parameter alias (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['imię'] = 'first', -- Polish
['in-set'] = 'inset', -- misspelling
['interviewerlink'] = 'interviewer-link', -- old parameter alias
['interviewermask'] = 'interviewer-mask', -- old parameter alias
['isbndefekt'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isbnformalfalsch'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isbnistformalfalsch'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isnb'] = 'isbn', -- misspelling
['issnformalfalsch'] = 'issn', -- German (can be fully emulated using ((syntax)))
['jahr'] = 'date', -- German
['jahrea'] = 'orig-date', -- German (not a direct replacement, but can be emulated)
['kapitel'] = 'chapter', -- German
['langauge'] = 'language', -- misspelling
['langue'] = 'language', -- French
['last-author-amp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['lastauthoramp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['lieu'] = 'location', -- French
['lingua'] = 'language', -- Italian
['lire en ligne'] = 'url', -- French
['lizenznummer'] = 'id', -- German (as 'id=License No. ...')
 
['loaction'] = 'location', -- misspelling
['local'] = 'location', -- Brazilian Portuguese
['locatoin'] = 'location', -- misspelling
['lugar'] = 'location', -- Spanish
['mailinglist'] = 'mailing-list', -- old parameter name
['mapurl'] = 'map-url', -- old parameter name
['mes'] = 'date', -- Spanish (not a direct replacement)
['mese'] = 'date', -- Italian (not a direct replacement)
['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
['name-list-format'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['nazwisko'] = 'last', -- Polish
['nespaper'] = 'newspaper', -- misspelling
['net-work'] = 'network', -- misspelling
['newpaper'] = 'newspaper', -- misspelling
['news'] = 'newspaper',
['news-group'] = 'newsgroup', -- misspelling
['news-paper'] = 'newspaper', -- misspelling
['no-cat'] = 'no-tracking', -- old parameter
['nocat'] = 'no-tracking', -- old parameter
['nom'] = 'last', -- French
['nombre'] = 'first', -- Spanish
['nome'] = 'first', -- Italian
['nopp'] = 'no-pp', -- old parameter name
['notracking'] = 'no-tracking', -- old parameter
['numero'] = 'number', -- Italian, Spanish
['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)
['opera'] = 'work', -- Italian
['opublikowany'] = 'agency', -- Polish
['origdate'] = 'orig-date', -- misspelling
['originaljahr'] = 'orig-date', -- 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', -- misspelling
['pagina'] = 'page', -- Italian
['pagina'] = 'pages', -- Italian
['pagine'] = 'pages', -- Italian
['pagine'] = 'pages', -- Italian
['passage'] = 'pages', -- French
['periodico'] = 'magazine', -- Spanish
['plublisher'] = 'publisher', -- misspelling
['pmcid'] = 'pmc',
['post-script'] = 'postscript', -- misspelling
['praca'] = 'work', -- Polish
['primero'] = 'first', -- Spanish
['prénom'] = 'first', -- French
['prénom1'] = 'first1', -- French
['ps'] = 'postscript',
['pub'] = 'publisher',
-- ['pubblicazione'] = 'magazine', -- could be any kind of work
-- ['publicación'] = 'journal', -- could be any kind of work
['publicationdate'] = 'publication-date', -- old parameter name
-- ['published'] = 'publisher', -- could be date, location, or name of publisher
['publicationplace'] = 'publication-place', -- old parameter name
['pulbication-place'] = 'publication-place', -- misspelling
['página'] = 'page', -- Spanish
['páginas'] = 'pages', -- Spanish
['périodique'] = 'publisher', -- French
['registration'] = 'url-access', -- old parameter name
['reihe'] = 'series', -- German
['retrieved'] = 'access-date',                                              -- old parameter name
['richiestasottoscrizione'] = 'url-access', -- Italian (as |url-access=subscription)
['rivista'] = 'magazine',                                                  -- Italian
    ['rok'] = 'date', -- Polish
['rubrik'] = 'title',                                                      -- Swedish
    ['sammelwerk'] = 'work', -- German
['sayfa'] = 'page', -- Turkish
['sayfalar'] = 'pages', -- Turkish
['sayı'] = 'issue', -- Turkish
['script-post'] = 'postscript', -- misspelling
['script-trans'] = 'transcript', -- misspelling
['season'] = 'date', -- old parameter name (cite serial only)
['sectionurl'] = 'section-url', -- old parameter name
['seiten'] = 'pages', -- German
['seria'] = 'series', -- Spanish, Polish
['serie'] = 'series', -- Italian
['série'] = 'series', -- French
['serieslink'] = 'series-link', -- old parameter name
['seriesno'] = 'series-number', -- old parameter name
['service'] = 'agency',
['sitioweb'] = 'website', -- Spanish
['sito'] = 'website', -- Italian
['soyadı'] = 'last', -- Turkish
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
['sprache'] = 'language', -- German
['språk'] = 'language',                                                    -- Swedish, Norwegian
    ['stron'] = 'page', -- Polish
['strony'] = 'pages', -- Polish
['subjectlink'] = 'subject-link', -- old parameter name
['subscription'] = 'url-access', -- old parameter name (emulated as |url-access=subscription)
['sur-name'] = 'surname', -- misspelling
['suscripción'] = 'url-access', -- Spanish, Polish (as |url-access=subscription)
['tag'] = 'date', -- German
['tarih'] = 'date', -- Turkish
['template doc demo'] = 'no-tracking', -- old parameter alias
['tidning'] = 'work',                                                      -- Swedish
    ['tile'] = 'title', -- misspelling
['timecaption'] = 'time-caption', -- old parameter name
['titlelink'] = 'title-link', -- old parameter name
['tipo'] = 'type', -- Italian
['tite'] = 'title', -- misspelling
['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)
['titled'] = 'title', -- Brazilian Portuguese
['titolo'] = 'title', -- Italian
['titre'] = 'title', -- French
['trans-script'] = 'transcript', -- misspelling
['trans_chapter'] = 'trans-chapter', -- old parameter alias
['trans_title'] = 'trans-title', -- old parameter alias
['transchapter'] = 'trans-chapter',
['transcripturl'] = 'transcript-url', -- old parameter name
['transscript'] = 'transcript', -- misspelling
['transscript-format'] = 'transcript-format', -- misspelling
['transscript-url'] = 'transcript-url', -- misspelling
['transscripturl'] = 'transcript-url', -- misspelling
['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
['títle'] = 'title',
['título'] = 'title', -- Spanish
['ubicación'] = 'location', -- Spanish
['urlarchivio'] = 'archive-url', -- Italian
['urlarchivo'] = 'archive-url', -- Spanish
['urlmorto'] = 'url-status', -- Italian
['urn'] = 'id', -- German (as 'id={{URN|...}}')
['v-authors'] = 'vauthors', -- misspelling
['v-editors'] = 'veditors', -- misspelling
['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
['yardımcıyazarlar'] = 'author', -- Turkish
['yayımcı'] = 'publisher', -- Turkish
['yayıncı'] = 'publisher', -- Turkish
['yazar'] = 'author', -- Turkish
['yazarbağı'] = 'author-link', -- Turkish
['yer'] = 'location', -- Turkish
['yıl'] = 'date', -- Turkish
['zaprezentowany'] = 'publisher', -- French
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}')
['zitat'] = 'quote', -- German
['zugriff'] = 'access-date', -- German
['éditeur'] = 'editor', -- French
['ölüurl'] = 'url-status', -- Turkish
['übersetzer'] = 'translator', -- German (singular and plural)
}
}
 
return suggestions;
 
 
--[[--------------------------< 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', -- misspelling
['^apellido[s]?(%d+)$'] = 'last$1', -- Spanish, enumerated
['^a[utho]+r$'] = 'author', -- misspelling
['^a[utho]+r(%d+)$'] = 'author$1', -- misspelling, enumerated
['^author link(%d+)$'] = 'author-link$1', -- Polish, enumerated
['^autor[e]?(%d+)$'] = 'author$1', -- Italian/Spanish/German, enumerated
['^authorfirst(%d+)$'] = 'author-first$1', -- old parameter name, enumerated
['^author(%d+)first$'] = 'author-first$1', -- old parameter name, enumerated
['^authorgiven(%d+)$'] = 'author-given$1', -- old parameter name, enumerated
['^author(%d+)given$'] = 'author-given$1', -- old parameter name, enumerated
['^authorlast(%d+)$'] = 'author-last$1', -- old parameter name, enumerated
['^author(%d+)last$'] = 'author-last$1', -- old parameter name, enumerated
['^authormask(%d+)$'] = 'author-mask$1', -- old parameter name, enumerated
['^author(%d+)mask$'] = 'author-mask$1', -- old parameter name, enumerated
['^authorsurname(%d+)$'] = 'author-surname$1', -- old parameter name, enumerated
['^author(%d+)surname$'] = 'author-surname$1', -- old parameter name, enumerated
['^cognome(%d+)$'] = 'last$1', -- Italian, enumerated
['^editorfirst(%d+)$'] = 'editor-first$1', -- old parameter name, enumerated
['^editor(%d+)first$'] = 'editor-first$1', -- old parameter name, enumerated
['^editorgiven(%d+)$'] = 'editor-given$1', -- old parameter name, enumerated
['^editor(%d+)given$'] = 'editor-given$1', -- old parameter name, enumerated
['^editorlast(%d+)$'] = 'editor-last$1', -- old parameter name, enumerated
['^editor(%d+)last$'] = 'editor-last$1', -- old parameter name, enumerated
['^editorlink(%d+)$'] = 'editor-link$1', -- old parameter name, enumerated
['^editor(%d+)link$'] = 'editor-link$1', -- old parameter name, enumerated
['^editormask(%d+)$'] = 'editor-mask$1', -- old parameter name, enumerated
['^editor(%d+)mask$'] = 'editor-mask$1', -- old parameter name, enumerated
['^editorsurname(%d+)$'] = 'editor-surname$1', -- old parameter name, enumerated
['^editor(%d+)surname$'] = 'editor-surname$1', -- old parameter name, enumerated
['^enlaceautore(%d+)$'] = 'author-link$1', -- Spanish, enumerated
['^first (%d+)$'] = 'first$1', -- enumerated
['^last (%d+)$'] = 'last$1', -- enumerated
['^nom[e]?(%d+)$'] = 'last$1', -- Italian/French, enumerated
['^nombre(%d+)$'] = 'first$1', -- Spanish, enumerated
['^primero(%d+)$'] = 'first$1', -- Spanish, enumerated
['^pu[blish]+ers?$'] = 'publisher', -- misspelling
['^subjectlink(%d+)$'] = 'subject-link$1', -- old parameter name, enumerated
['^subject(%d+)link$'] = 'subject-link$1', -- old parameter name, enumerated
['^wkautore(%d+)$'] = 'author-link$1', -- Italian, enumerated
}
 
return {suggestions = suggestions, patterns=patterns};

Revision as of 15:43, 31 May 2024

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

suggestions = {

   ['acccessdate'] = 'accessdate',
   ['accesdate'] = 'accessdate',
   ['access date'] = 'accessdate',
   ['access-date'] = 'accessdate',
   ['accessate'] = 'accessdate',
   ['accessdare'] = 'accessdate',
   ['accessdatte'] = 'accessdate',
   ['accessddate'] = 'accessdate',
   ['accessdte'] = 'accessdate',
   ['accessed'] = 'accessdate',
   ['accessedate'] = 'accessdate',
   ['accesssdate'] = 'accessdate',
   ['accssdate'] = 'accessdate',
   ['acessdate'] = 'accessdate',
   ['address'] = 'location',
   ['année'] = 'year', -- French
   ['añoacceso'] = 'accessyear', -- Spanish, Italian
   ['apellido'] = 'last', -- Spanish, Italian
   ['archive date'] = 'archivedate',
   ['archive url'] = 'archiveurl', -- Spanish, Italian
   ['auteur'] = 'author', -- French
   ['auther'] = 'author',
   ['author link'] = 'authorlink',
   ['autor'] = 'author', -- Spanish, Italian
   ['autor2'] = 'author2', -- Spanish, Italian
   ['autthor'] = 'author',
   ['cita'] = 'quote', -- Spanish, Italian
   ['coautores'] = 'coauthors', -- Spanish, Italian
   ['consulté le'] = 'accessdate', -- French
   ['distributor'] = 'publisher',
   ['éditeur'] = 'editor', -- French
   ['editon'] = 'edition',
   ['editoin'] = 'edition',
   ['editorial'] = 'publisher',
   ['en ligne le'] = 'archivedate', -- French
   ['enlaceautor'] = 'authorlink', -- Spanish, Italian
   ['fecha'] = 'date', -- Spanish, Italian
   ['fechaacceso'] = 'accessdate', -- Spanish, Italian
   ['fechaarchivo'] = 'archivedate', -- Spanish, Italian
   ['filetype'] = 'format',
   ['first 1'] = 'first1',
   ['foramt'] = 'format',
   ['formato'] = 'format', -- Spanish, Italian
   ['frist'] = 'first',
   ['idioma'] = 'language', -- Spanish, Italian
   ['isnb'] = 'isbn',
   ['lang'] = 'language',
   ['langauge'] = 'language',
   ['langue'] = 'language', -- French
   ['last 1'] = 'last1',
   ['lieu'] = 'location', -- French
   ['lire en ligne'] = 'url', -- French
   ['loaction'] = 'location',
   ['locatoin'] = 'location',
   ['mois'] = 'month', -- French

-- ['name'] = 'author', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion

   ['nespaper'] = 'newspaper',
   ['newpaper'] = 'newspaper',
   ['news'] = 'newspaper',
   ['nom'] = 'last', -- French
   ['nom1'] = 'last1', -- French
   ['nombre'] = 'first', -- Spanish, Italian
   ['obra'] = 'work', -- Spanish, Italian
   ['origdate'] = 'origyear',
   ['other'] = 'others',
   ['pagees'] = 'pages',
   ['página'] = 'page', -- Spanish, Italian
   ['páginas'] = 'pages', -- Spanish, Italian
   ['passage'] = 'pages', -- French
   ['périodique'] = 'publisher', -- French
   ['plublisher'] = 'publisher',
   ['pmcid'] = 'pmc',
   ['prénom'] = 'first', -- French
   ['prénom1'] = 'first1', -- French
   ['pub'] = 'publisher',
   ['pubisher'] = 'publisher',
   ['publiser'] = 'publisher',
   ['publishers'] = 'publisher',
   ['publsher'] = 'publisher',
   ['publsiher'] = 'publisher',
   ['pulbication-place'] = 'publication-place',
   ['pulbisher'] = 'publisher',
   ['retrieved'] = 'accessdate',
   ['série'] = 'work', -- French
   ['service'] = 'agency',
   ['suscripción'] = 'subscription', -- Spanish, Italian
   ['tile'] = 'title',
   ['tite'] = 'title',
   ['titolo'] = 'title', -- Spanish, Italian
   ['titre'] = 'title', -- French
   ['título'] = 'title', -- Spanish, Italian
   ['transchapter'] = 'trans-chapter',
   ['translator'] = 'others',
   ['transtitle'] = 'trans-title',
   ['ubicación'] = 'location', -- Spanish, Italian
   ['urlarchivo'] = 'archiveurl', -- Spanish, Italian
   ['vol'] = 'volume', 

} return suggestions;