diff --git a/index.html b/index.html
index b36a7e4..4019a06 100644
--- a/index.html
+++ b/index.html
@@ -23,13 +23,13 @@
diff --git a/src/js/render.js b/src/js/render.js
index f2be93c..86563f5 100644
--- a/src/js/render.js
+++ b/src/js/render.js
@@ -5,6 +5,7 @@ import { showSection } from './displayToggles';
export function renderAll() {
renderDictionaryDetails();
+ renderPartsOfSpeechSelect();
renderWords();
}
@@ -81,6 +82,15 @@ export function renderStats() {
detailsPanel.innerHTML = numberOfWordsHTML + wordLengthHTML + letterDistributionHTML + totalLettersHTML;
}
+export function renderPartsOfSpeechSelect() {
+ let optionsHTML = '';
+ window.currentDictionary.partsOfSpeech.forEach(partOfSpeech => {
+ partOfSpeech = removeTags(partOfSpeech);
+ optionsHTML += ``;
+ });
+ Array.from(document.getElementsByClassName('part-of-speech-select')).forEach(select => select.innerHTML = optionsHTML);
+}
+
export function renderWords() {
const { words } = window.currentDictionary;
let wordsHTML = '';