diff --git a/app/corpora/json_routes.py b/app/corpora/json_routes.py index 6784bb9e..5ba4d7a2 100644 --- a/app/corpora/json_routes.py +++ b/app/corpora/json_routes.py @@ -66,7 +66,7 @@ def get_stopwords(): stopwords = {} for language in languages: stopwords[language] = nltk.corpus.stopwords.words(language) - stopwords['punctuation'] = list(punctuation) + ['—', '|'] + stopwords['punctuation'] = list(punctuation) + ['—', '|', '–', '“', '„'] stopwords['user_stopwords'] = [] response_data = stopwords return response_data, 202 diff --git a/app/static/js/CorpusAnalysis/CorpusAnalysisStaticVisualization.js b/app/static/js/CorpusAnalysis/CorpusAnalysisStaticVisualization.js index 01c8f08f..e51a3534 100644 --- a/app/static/js/CorpusAnalysis/CorpusAnalysisStaticVisualization.js +++ b/app/static/js/CorpusAnalysis/CorpusAnalysisStaticVisualization.js @@ -1,5 +1,5 @@ class CorpusAnalysisStaticVisualization { - name = 'Static Visualization'; + name = 'Static Visualization (beta)'; constructor(app) { this.app = app; @@ -65,7 +65,6 @@ class CorpusAnalysisStaticVisualization { actionButton.addEventListener('click', (event) => { let action = event.target.closest('.frequencies-stopword-setting-modal-action-buttons').dataset.action; if (action === 'submit') { - console.log('Stopwords changed'); this.renderTokenList(); } else if (action === 'cancel') { this.data.stopwords = structuredClone(this.data.stopwordCache); @@ -279,7 +278,7 @@ class CorpusAnalysisStaticVisualization { }, height: 627, margin: { - l: 17 + l: 33 } }; let config = { diff --git a/app/static/js/ResourceLists/CorpusTokenList.js b/app/static/js/ResourceLists/CorpusTokenList.js index 48129217..cc16692b 100644 --- a/app/static/js/ResourceLists/CorpusTokenList.js +++ b/app/static/js/ResourceLists/CorpusTokenList.js @@ -26,7 +26,7 @@ class CorpusTokenList extends ResourceList { this.selectedItemTerms.add(termElement.textContent); } } - corpusAnalysisApp.extensions['Static Visualization'].renderFrequenciesGraphic(this.selectedItemTerms); + corpusAnalysisApp.extensions['Static Visualization (beta)'].renderFrequenciesGraphic(this.selectedItemTerms); }); let tokenListResetButtonElement = this.listContainerElement.querySelector('#token-list-reset-button'); @@ -43,7 +43,7 @@ class CorpusTokenList extends ResourceList { item.elm.querySelector('.select-checkbox').checked = false; } } - corpusAnalysisApp.extensions['Static Visualization'].renderFrequenciesGraphic(this.selectedItemTerms); + corpusAnalysisApp.extensions['Static Visualization (beta)'].renderFrequenciesGraphic(this.selectedItemTerms); }); } @@ -129,7 +129,7 @@ class CorpusTokenList extends ResourceList { } else { this.selectedItemTerms.delete(item); } - corpusAnalysisApp.extensions['Static Visualization'].renderFrequenciesGraphic(this.selectedItemTerms); + corpusAnalysisApp.extensions['Static Visualization (beta)'].renderFrequenciesGraphic(this.selectedItemTerms); break; } default: { diff --git a/app/templates/corpora/_analysis/static_visualization.html.j2 b/app/templates/corpora/_analysis/static_visualization.html.j2 index 8ff56178..c457cbf3 100644 --- a/app/templates/corpora/_analysis/static_visualization.html.j2 +++ b/app/templates/corpora/_analysis/static_visualization.html.j2 @@ -1,4 +1,4 @@ -{% set name = 'Static Visualization' %} +{% set name = 'Static Visualization (beta)' %} {% set description = '' %} @@ -108,7 +108,7 @@
diff --git a/app/templates/corpora/analysis.html.j2 b/app/templates/corpora/analysis.html.j2 index 2938f886..046fa161 100644 --- a/app/templates/corpora/analysis.html.j2 +++ b/app/templates/corpora/analysis.html.j2 @@ -12,7 +12,7 @@ {% block page_content %}