{"id":221,"date":"2024-05-28T12:44:00","date_gmt":"2024-05-28T10:44:00","guid":{"rendered":"https:\/\/morphophonologie.org\/?page_id=221"},"modified":"2024-06-10T21:08:09","modified_gmt":"2024-06-10T19:08:09","slug":"corpus","status":"publish","type":"page","link":"https:\/\/morphophonologie.org\/?page_id=221","title":{"rendered":"Corpora"},"content":{"rendered":"<link rel=\"stylesheet\" href=\"https:\/\/cdn.datatables.net\/1.10.23\/css\/jquery.dataTables.min.css\">\r\n<script src=\"https:\/\/cdn.datatables.net\/1.12.0\/js\/jquery.dataTables.min.js\"><\/script>\r\n<script src=\"https:\/\/cdn.datatables.net\/buttons\/2.2.3\/js\/dataTables.buttons.min.js\"><\/script>\r\n<script src=\"https:\/\/cdn.datatables.net\/buttons\/2.2.3\/js\/buttons.html5.min.js\"><\/script>\r\n<style>\r\n  .zone_corpus { cursor:pointer;}\r\n\r\n  [data-tooltip] {\r\n    position: relative;\r\n\tz-index:50;\r\n  }\r\n\r\n  [data-tooltip]:after {\r\n    content: attr(data-tooltip);\r\n    position: absolute;\r\n    left: 50%;\r\n    bottom: 100%; \/* put it on the top *\/\r\n    background-color: white;\r\n    width: 300px; \/*max-content;*\/\r\n    opacity: 0;\r\n    -webkit-transition: opacity 0.75s ease-in-out;\r\n  }\r\n\t\t\r\n [data-tooltip]:hover:after {\r\n    opacity: 1;\r\n  }\r\n\t\r\n  div[data-tooltip]:after {\r\n    left: 5px!important;\r\n  }\r\n  div.dt-container {\r\n        width: 200px;\r\n        margin: 0 auto;\r\n  }\r\n<\/style>\r\n<div class=\"row col-sm-12\">\r\n\t<div class=\"col-sm-12\">\r\n\t\t<h1 id=\"super_titre\" style=\"color:#FF8A00;text-align:center;\"> Title <\/h1>\r\n\t<\/div>\r\n<\/div>\r\n<div class=\"service-section\" style=\"margin: -80px;\">\r\n\t<div class=\"container\">\r\n\t\t<div class=\"row service-section service5\">\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" onclick=\"charge_corpus('corpus_verbs');\" onmouseover=\"affiche_titre('Corpus Verb\/noun pairs');\">\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/corpus_.jpg\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">Verb\/noun pairs <br> (\u00e0 venir)<\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" onclick=\"charge_corpus('corpus_suffixes');\" onmouseover=\"affiche_titre('Corpus Suffixes');\">\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/38f0.webp\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">Suffixes <br> (\u00e0 venir)<\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\t\t\t\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" onclick=\"charge_corpus('corpus_secondary');\" onmouseover=\"affiche_titre('Corpus Secondary stress');\">\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/d5e0.webp\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">Secondary stress <br> (\u00e0 venir)<\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\t\t\t\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" title=\"The Stress Patterns of English Verbs: Syllable Weight and Morphology \u2013 Quentin Dabouis &#038; Jean-Michel Fournier\" \r\n\t\t\t\t onclick=\"charge_corpus('corpus_stress');\"  onmouseover=\"affiche_titre('Corpus Stress patterns of verbs');\" >\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/corpus_.jpg\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">Stress patterns of verbs <br\/> <i class=\"fa fa-eye\" aria-hidden=true><\/i><\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\t\t\t\t\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" onclick=\"charge_corpus('corpus_lemmes');\" onmouseover=\"affiche_titre('Corpus First 5000 lemmes');\">\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/d5e0.webp\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">First 5000 lemmes <br>  <i class=\"fa fa-eye\" aria-hidden=true><\/i><\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" onclick=\"charge_corpus('corpus_french');\" onmouseover=\"affiche_titre('Corpus French loanwords in -eur, -euse, -aire');\">\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/38f0.webp\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">French loanwords in -eur, -euse, -aire <br> (\u00e0 venir)<\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" onclick=\"charge_corpus('corpus_loanwords');\" \r\n\t\t\t\t onmouseover=\"affiche_titre('Corpus Loanwords from Australian Aboriginal langages');\" >\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/corpus_.jpg\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">Loanwords from Australian Aboriginal langages <br> (\u00e0 venir)<\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" onclick=\"charge_corpus('corpus_prefixes');\" onmouseover=\"affiche_titre('Corpus Prefixes');\">\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/38f0.webp\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">Prefixes <br> (\u00e0 venir)<\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" onclick=\"charge_corpus('corpus_disyllabic');\" onmouseover=\"affiche_titre('Corpus Disyllabic words with no morphological structure');\">\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/d5e0.webp\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">Disyllabic words with no morphological structure <br> (\u00e0 venir)<\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"col-md-2 col-sm-4\" style=\"cursor:pointer;\" title=\"This is the dataset used for the manuscript 'Vowel reduction and preservation in British English' submitted to the special issue of Phonology on Corpus Phonology\"  onclick=\"charge_corpus('corpus_vowel_reduction');\"\r\n\t\t\t\tonmouseover=\"affiche_titre('Corpus Vowel reduction');\" >\r\n\t\t\t\t<div class=\"service-effect\">\r\n\t\t\t\t\t<div clas=\"service-box\">\r\n\t\t\t\t\t\t<img decoding=\"async\" class=\"img-responsive service-box-image\" style=\"height:80px;\" alt=\"Historique\"\r\n\t\t\t\t\t\t\t src=\"https:\/\/morphophonologie.org\/wp-content\/uploads\/2024\/06\/corpus_.jpg\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div clas=\"service-area\">\r\n\t\t\t\t\t\t<p style=\"font-size:12px;text-align:center;\">Vowel reduction <br\/> <i class=\"fa fa-eye\" aria-hidden=true><\/i><\/p>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div>\r\n<br\/>\r\n\r\n\r\n\r\n<div class=\"row col-sm-12\" id=\"corpus_stress\" style=\"display:none;background-color:#2a2c33\">\r\n\t<!-- <p class=\"has-vivid-cyan-blue-color has-text-color has-link-color has-medium-font-size wp-elements-2cf1bf8133d1588f62995669369abd7d\"><em>The Stress Patterns of English Verbs: Syllable Weight and Morphology \u2013 Quentin Dabouis & Jean-Michel Fournier<a href=\"https:\/\/lll.cnrs.fr\/actualite\/the-stress-patterns-of-english-verbs\/\">lien<\/a><\/em><\/p> -->\r\n\t<!-- <p id=\"titre\" class=\"has-vivid-cyan-blue-color has-text-color has-link-color has-medium-font-size wp-elements-2cf1bf8133d1588f62995669369abd7d\">-->\r\n\t<p id=\"titre\" class=\"has-vivid-cyan-blue-color has-text-color has-link-color\" style=\"text-align:center;font-size:32px;\">\r\n\t\t<!-- <em><\/em> -->\r\n\t<\/p>\r\n\t<h2 id=\"titre_collection\" style=\"text-align:center;color:white;font-size:16px;\"><\/h2>\r\n\t<div class=\"wp-block-columns\">\r\n\t\t<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex\"> \r\n\t\t\t<div id=\"liste_items\" >\r\n\t\t\t<\/div>\r\n\t\t<\/div>\r\n\t\t<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"width:50%\"> \r\n\t\t\t<div id=\"zone_mots\"><\/div>\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div>\r\n\r\n<script>\r\nconst liste_corpus=[\"corpus_verbs\",\"corpus_suffixes\",\"corpus_secondary\",\"corpus_prefixes\",\"corpus_loanwords\",\r\n\t\t\t\t\t\"corpus_french\",\"corpus_lemmes\",\"corpus_stress\",\"corpus_disyllabic\",\"corpus_vowel_reduction\"];\r\nconst raz=function() {\r\n\tdocument.getElementById(\"liste_items\").innerHTML=\"\";\r\n\tdocument.getElementById(\"zone_mots\").innerHTML=\"\";\r\n}\t\r\nconst charge_corpus=function(item) {\r\n\t\/\/console.log(event);\r\n\tdocument.getElementById(\"titre\").innerHTML=event.target.outerText;\r\n\traz();\r\n\tdocument.getElementById(\"corpus_stress\").style.display=\"block\";\r\n\tchargement_liste(liste_items[item]);\r\n}\r\nconst affiche_titre=function(titre) {\r\n\tdocument.getElementById(\"super_titre\").innerHTML=titre;\r\n}\r\n\t\r\nlet table=null;\r\n\r\nlet liste_items= {\r\n\t  \"corpus_vowel_reduction\":{\r\n\t\t\"inipretND\":{\"intitule\":\"reduction inipretND\",\"file\":\"\/vowel_reduction\/vowel_reduction_inipretND.csv\",\"info\":\"Monomorphemic or root-derived suffixed words, focus on the vowel in the initial pretonic position. These are called \\\"non-derived words\\\" in the paper and analysed in \u00a75.1.\"},\r\n\t\"interND\":{\"intitule\":\"reduction inipretder\",\"file\":\"\/vowel_reduction\/vowel_reduction_inipretder.csv\",\"info\":\"Monomorphemic or root-derived suffixed words, focus on the vowel in the intertonic position. These are called \\\"non-derived words\\\" in the paper and analysed in \u00a75.1.\"},\r\n\t\"inipretpref\":{\"intitule\":\"reduction inipretpref\",\"file\":\"\/vowel_reduction\/vowel_reduction_inipretpref.csv\",\"info\":\"Prefixed words (opaque and transparent), focus on the vowel in the intertonic position. These are analysed in \u00a75.2.\"},  \r\n\t\"inipretder\":{\"intitule\":\"reduction interND\",\"file\":\"\/vowel_reduction\/vowel_reduction_interND.csv\",\"info\":\"Accent-shifted derivatives, focus on the vowel in the initial pretonic position. These are analysed in \u00a75.3 and \u00a75.4.\"},  \r\n\t\"interder\":{\"intitule\":\"reduction interder\",\"file\":\"\/vowel_reduction\/vowel_reduction_interder.csv\",\"info\":\"Accent-shifted derivatives, focus on the vowel in the intertonic position. These are analysed in \u00a75.3 and \u00a75.4.\"}\r\n\t},\r\n\t\"corpus_stress\": {\r\n\t\"exlu\":{\"intitule\":\"Exclusions\",\"file\":\"\/verbs\/DATA_English-Verbs_exclusions.csv\",\"info\":\"Conversions N>V\u00a0: the verb is actually a converted noun\"},\r\n\t\"conv\":{\"intitule\":\"Conversions N>V\",\"file\":\"\/verbs\/DATA_English-Verbs_conversions_N_V.csv\",\"info\":\"Conversions N>V\"},\r\n\t\"conv_o\":{\"intitule\":\"Conversion Other>V\",\"file\":\"\/verbs\/DATA_English-Verbs_conversions_Other_V.csv\",\"info\":\"Conversions Other>V : verb converted from other categories than noun\"},\r\n\t\"compo\":{\"intitule\":\"Compositional constructions\",\"file\":\"\/verbs\/DATA_English-Verbs_compositional_constructions.csv\",\"info\":\"Compositional Constructions : the meaning of the verb is compositional\"},\r\n\t\"stress_shift\":{\"intitule\":\"Stress-shifting Suffixes\",\"file\":\"\/verbs\/DATA_English-Verbs_stress_shifting_suffixes.csv\",\"info\":\"Stress-shifting suffixes\u00a0: suffixes associated with a fixed position of primary stress, even when that entails shifting from the deriving form\"},\r\n\t\"stress_pre\":{\"intitule\":\"Stress-perserving Suffixes\",\"file\":\"\/verbs\/DATA_English-Verbs_stress_preserving_suffixes.csv\",\"info\":\"Stress-preserving suffixes\u00a0: suffixes that do not affect the stress pattern of the deriving form\"},\r\n\t\"ize\":{\"intitule\":\"-ize\",\"file\":\"\/verbs\/DATA_English-Verbs_ize.csv\",\"info\":\"ize : this collection contains the numerous verbs in -ize with an attested base\"},\r\n\t\"compounds\":{\"intitule\":\"Compounds\",\"file\":\"\/verbs\/DATA_English-Verbs_compounds.csv\",\"info\":\"Compounds : all verbs identified as such where both elements are attested words\"},\r\n\t\"others\":{\"intitule\":\"Others\",\"file\":\"\/verbs\/DATA_English-Verbs_others.csv\",\"info\":\"Others : verbs with a complex internal structure where at least on element is not attested as an independent word\"},\r\n\t\"opa_free\":{\"intitule\":\"Opaque Pref Free base\",\"file\":\"\/verbs\/DATA_English-Verbs_opaque_pref_free_base.csv\",\"info\":\"Opaque Pref Free Base : opaque prefixed verbs whose base is an attested word (the free base may be suffixed)\"},\r\n\t\"opa_bound\":{\"intitule\":\"Opaque Pref Bound Base\",\"file\":\"\/verbs\/DATA_English-Verbs_opaque_pref_bound_base.csv\",\"info\":\"Opaque Pref Bound Base : opaque prefixed verbs whose base is a bound element (the bound base may be suffixed)\"},\r\n\t\"bound\":{\"intitule\":\"Bound Base + Suffix\",\"file\":\"\/verbs\/DATA_English-Verbs_bound_base_suffix.csv\",\"info\":\"Bound Base + Suffix : verbs formed from a bound element and a suffix (the bound element cannot be prefixed : see the Opaque Pref Bound Base collection)\"},\r\n\t\"simplex\":{\"intitule\":\"Simplex\",\"file\":\"\/verbs\/DATA_English-Verbs_simplex.csv\",\"info\":\"Simplex : verbs with no recognizable internal structure\"},\r\n\t\"sw_disyl\":{\"intitule\":\"Sw analysis \u2013 Disyllabes\",\"file\":\"\/verbs\/DATA_English-Verbs_sw_analysis_dissyllables.csv\",\"info\":\"SW analysis \u2013 Disyllables : syllable weight analysis amongst disyllables\"},\r\n\t\"sw_verbs\": {\"intitule\":\"Sw analysis \u2013 Long verbs\",\"file\":\"\/verbs\/DATA_English-Verbs_sw_analysis_long_verbs.csv\",\"info\":\"SW analysis - Long verbs : syllable weight analysis amongst longer verbs (more than 2 syllables)\"}\r\n\t},\r\n\t\"corpus_verbs\":{},\r\n\t\"corpus_suffixes\":{},\r\n\t\"corpus_secondary\":{},\r\n\t\"corpus_prefixes\":{},\r\n\t\"corpus_loanwords\":{},\r\n\t\"corpus_french\":{},\r\n\t\"corpus_lemmes\":{\r\n\t\t\"data\": {\"intitule\":\"Data\",\"file\":\"\/first_5000_words\/First_5000_words_data.csv\",\"info\":\"Data\"}\r\n\t},\r\n\t\"corpus_disyllabic\":{}\r\n}\r\n\r\nconst chargement_liste=function(liste) {\r\n\t\tlet listes=document.getElementById(\"liste_items\");\r\n\t\tlistes.innerHTML = \"\";\r\n\t\tObject.keys(liste).forEach((elem_)=> {\r\n\t\t\tlet li = document.createElement(\"p\");\t\r\n\t\t\tli.innerHTML= liste[elem_].intitule;\r\n\t\t\tcolor=\"blue\";\r\n\t\t\tli.setAttribute(\"style\",\"width:200px;font-size:12px;text-decoration:none;color:\"+color+\";background-color:lightblue\");\r\n\t\t\tli.setAttribute(\"class\",\"zone_corpus\");\r\n\t\t\t\/* li.setAttribute(\"data-tooltip\",liste[elem_].info); *\/\r\n\t\t\tli.setAttribute(\"title\",liste[elem_].info);\r\n\t\t\tli.setAttribute(\"fichier\",liste[elem_].file);\r\n\t\t\tli.addEventListener(\"click\", function(event) { \r\n\t\t\t\tlet valeurs=event.srcElement.childNodes[0].data;\r\n\t\t\t\tlet fichier=this.getAttribute(\"fichier\");\r\n\t\t\t\tdocument.getElementById(\"titre_collection\").innerHTML=valeurs;\r\n\t\t\t\tchargement_file_csv(fichier);\r\n\t\t\t});\r\n\t\t\t\/*li.addEventListener(\"mouseover\", function(event) { \r\n\t\t\t\tif (this.style.backgroundColor==\"lightblue\")\r\n\t\t\t\t\tthis.style.backgroundColor=\"lightgrey\";\r\n\t\t\t});\r\n\t\t\tli.addEventListener(\"mouseleave\", function(event) {\r\n\t\t\t\tif (this.style.backgroundColor==\"lightgrey\")\r\n\t\t\t\t\tthis.style.backgroundColor=\"lightblue\";\r\n\t\t\t});*\/\t\r\n\t\t\tlistes.appendChild(li);\r\n\t\t});\t\r\n}\r\nconst addElement=function(parentId, elementType, elementId, contenu,display=\"display:block\") {\r\n\tvar p = document.getElementById(parentId);\r\n\tvar newElement = document.createElement(elementType);\r\n\tnewElement.setAttribute(\"id\", elementId);\r\n\tnewElement.innerHTML = contenu;\r\n\tnewElement.setAttribute(\"style\", display);\r\n\tp.appendChild(newElement);\r\n}\t\r\nconst help_column={\"FqNo > FqV\":{\"help\":\"noun frequency is greater than verb frequency\"},\r\n\t\t\t\t   \"SemV < SemNo\"\u00a0:{\"help\":\"verb meaning is derived from the noun\"},\r\n\t\t\t\t   \"Date V\":{\"help\"\u00a0:\"verb first date of attestation\"},\r\n\t\t\t\t   \"Date N\":{\"help\":\"noun first date of attestation\"},\r\n\t\t\t\t   \"Morph\":{\"help\":\"morphological category of the first element, prefix or adverb\"},\r\n\t\t\t\t   \"Stress\":{\"help\":\"word stress represented by a sequence of numbers, one for each syllable, where 0 = unstressed, 1 = primary stress, 2 = secondary stress\"},\r\n\t\t\t\t   \"Pron\": {\"help\":\"phonetic transcription\"},\r\n\t\t\t\t   \"Suffix\"\u00a0:{\"help\":\"the suffix concerned\"},\r\n\t\t\t\t   \"Base\":{\"help\":\"the base of the verb\"},\r\n\t\t\t\t   \/*\"Spelling\":{\"help\":\"whether the elements are separated by a hypen or not\"},*\/\r\n\t\t\t\t   \"AccSimp\":{\"help\":\"simplified stress pattern, primary stress on first element (E1) or on second element (E2)\"},\r\n\t\t\t\t   \"CatEl1\":{\"help\":\"category for the first element\"},\r\n\t  \t\t\t   \"CatEl2\":{\"help\":\"category for the second element\"},\r\n\t\t\t\t   \"FqE1\":{\"help\":\"frequency of the first element\"},\r\n\t\t\t\t   \"FqE2\":{\"help\":\"frequency of the second element\"},\r\n\t\t\t\t   \"FqComp\":{\"help\":\"frequency of the compound\"},\r\n\t\t\t\t   \"logFqE1\":{\"help\":\"logarithmic frequency of the first element\"},\r\n\t\t\t\t   \"logFqE2\":{\"help\":\"logarithmic frequency of the second element\"},\r\n\t\t\t\t   \"logFqComp\":{\"help\":\"logarithmic frequency of the compound\"},\r\n\t\t\t\t\t\"SynsetE1\":{\"help\":\"number of words with a similar meaning as the first element (indirect measure of informativity, the lower the number the higher the informativity)\"},\r\n\t\t\t\t\t\"SynsetE2\":{\"help\":\"number of words with a similar meaning as the seoncd element (indirect measure of informativity, the lower the number the higher the informativity)\"},\r\n\t\t\t\t\t\"SyllE1\":{\"help\":\"number of syllables of the first element\"},\r\n\t\t\t\t\t\"SyllE2\":{\"help\":\"number of syllables of the second element\"},\r\n\t\t\t\t\t\"SyllTotal\":{\"help\":\"number of syllables of the compound\"},\r\n\t\t\t\t\t\"NbSyllAfterC1\":{\"help\":\"number of syllables after the main stress of the first element\"},\r\n\t\t\t\t\t\"SuffixedBase?\":{\"help\":\"when a suffixed form might be the source of the unsuffixed compound\"},\r\n\t\t\t\t\t\"DateComp\":{\"help\":\"first date of attestation of the compound\"},\r\n\t\t\t\t\t\"DateBase\":{\"help\":\"first date of attestation of the suffixed form\"},\r\n\t\t\t\t\t\"BaseinDefOED\":{\"help\":\"when the suffixed form is explicitly mentioned in the definition of the compound in OED\"},\r\n\t\t\t\t   \t\"BaseinDefDic.com\":{\"help\":\"when the suffixed form is explicitly mentioned in the definition of the compound in dictionary.com\"},\r\n\t\t\t\t\t\"Backformation\":{\"help\":\"when the compound can be analyzed as a back-formation\"},\r\n\t\t\t\t    \"\u00b5 count\":{\"help\":\"mora count of the final syllable (see book chapter for the methodology)\"},\r\n\t\t\t\t\t\"Weight\":{\"help\":\"weight of the final syllable, Light (L) or Heavy (H)\"}\r\n\t\t\t\t   \r\n\t\t\t\t  };\r\nconst construction_tableau=function(zone_, name_tab,liste_noms,contenu ) {\r\n\tconsole.log(\"construction_tableau==>\",zone_,name_tab);\r\n\tlet nb_cols=liste_noms.length;\r\n\tlet structure_tab=\"<table id='\"+name_tab+\"' class='row-border hover order-column display nowrap' cellspacing='0' width='100%'' style='background-color:#5bc0de'>\";\r\n\tlet thead=\"<thead  style='background-Color=yellow'>\";\r\n\tfor (let elem of liste_noms) {\r\n\t\tif (help_column[elem]!= undefined) {\r\n\t\t\tthead+=\"<td style='color:lightblue' data-toggle='tooltip' title='\"+help_column[elem].help+\"'>\"+elem+\"<\/td>\";\r\n\t\t\t\/\/ thead+=\"<td data-delay=5 data-toggle='tooltip' title='\"+help_column[elem].help+\"'>\"+elem+\"<\/td>\";\r\n\t\t} else {\r\n\t\t\tthead+=\"<td>\"+elem+\"<\/td>\";\r\n\t\t}\r\n\t}\r\n\tthead+=\"<\/thead>\";\r\n\tstructure_tab+=thead;\r\n\tstructure_tab+=\"<\/table>\";\r\n\taddElement(zone_,\"p\",\"p_\"+name_tab,structure_tab);\r\n\t\/\/ on l'ajoute a la div matrice_adjacente\r\n\tlet indice_couleur=0;\r\n\ttable = jQuery(\"#\"+name_tab).DataTable(\r\n\t{\r\n\t\t  data: contenu,\r\n   \t\t  dom:\"lBfrtip\",       \r\n          buttons: [\"csvHtml5\",'pdfHtml5'],\r\n         \"lengthMenu\": [30,60],\r\n         \"order\":[],\r\n         \/\/ \"sScrollX\": \"100%\",\r\n         scrollX : true,\r\n\t\t \"scrollCollapse\": true,\r\n\t\t \"color\": \"blue\",\r\n\t\t  paging: true\r\n\t});\t\r\n\t\/\/ pour modifier la vitesse d'affichage \r\n\t\/* jQuery('#'+name_tab+' table thead tr td[title]').tooltip( {\r\n        \"delay\": 0,\r\n        \"track\": true,\r\n        \"fade\": 250\r\n    }); *\/\r\n\t\r\n  \tjQuery('[data-toggle=\"tooltip\"]').tooltip({\"delay\":10,\"placement\":\"left\",\"container\":'body',\"animation\":true});\r\n\t\t\r\n\treturn table;\r\n}\r\n\r\nfunction processData(allText) {\r\n    let allTextLines = allText.split(\/\\r\\n|\\n\/);\r\n    let headers = allTextLines[0].split('#');\r\n    let lines = [];\r\n    for (var i=1; i<allTextLines.length; i++) {\r\n\t\t\/\/console.log(allTextLines[i]);\r\n\t\tif (allTextLines[i]!=\"\") {\r\n\t\t\t\/\/ il faut nettoyer les lignes surtout avec les nombres r\u00e9els \u00e0 mettre 2 digits derriere la virgule\r\n\t\t\tlet tab=allTextLines[i].split('#');\r\n\t\t\tlet new_tab=[];\r\n\t\t\tfor (let elem of tab) {\r\n\t\t\t\tif (elem.indexOf(\",\")!=-1) {\r\n\t\t\t\t\tnew_tab.push(parseFloat(elem.replace(\",\",\".\")).toFixed(2));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnew_tab.push(elem);\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlines.push(new_tab);\r\n        \t\/\/ lines.push(allTextLines[i].split('#'));\r\n\t\t}\r\n    }\r\n\ttable=construction_tableau(\"zone_mots\",\"tab_mots\",headers , lines);\r\n\r\n}\t\r\n\t\r\nconst chargement_file_csv=function(fichier) {\t\r\n\t\/\/ reset du tableau \r\n\tif (document.getElementById(\"p_tab_mots\")!= undefined)\r\n\t\tdocument.getElementById(\"p_tab_mots\").remove();\r\n\tfetch('.\/personnalisation\/'+fichier)\r\n\t.then((res) => res.text())\r\n\t.then((data) => {\r\n\t\tprocessData(data);\r\n\t})\r\n\t.catch((error) => console.log(error))\t\r\n\t\t\r\n}\r\n\r\n\r\n\t\r\n\r\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/morphophonologie.org\/index.php?rest_route=\/wp\/v2\/pages\/221"}],"collection":[{"href":"https:\/\/morphophonologie.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/morphophonologie.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/morphophonologie.org\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/morphophonologie.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221"}],"version-history":[{"count":7,"href":"https:\/\/morphophonologie.org\/index.php?rest_route=\/wp\/v2\/pages\/221\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/morphophonologie.org\/index.php?rest_route=\/wp\/v2\/pages\/221\/revisions\/306"}],"wp:attachment":[{"href":"https:\/\/morphophonologie.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}