diff --git a/doc/doc.md b/doc/doc.md
index 2eeecb868..7c57433d2 100644
--- a/doc/doc.md
+++ b/doc/doc.md
@@ -609,7 +609,7 @@ You can generate line charts or word clouds for patterns of colligation using an
> [!NOTE]
> Renamed from **Keyword** to **Keyword Extractor** in *Wordless* 2.2
-In *Keyword Extractor*, you can search for candidates of potential keywords (tokens that have far more or far less frequency in the observed file than in the reference file) in different files given a reference corpus, conduct different tests of statistical significance on each keyword and calculate the Bayes factor and effect size for each keyword using different measures. You can adjust the settings for the generated data via **Generation Settings**. You can disable the calculation of statistical significance and/or Bayes factor and/or effect size by setting **Generation Settings → Test of Statistical Significance / Measures of Bayes Factor / Measure of Effect Size** to **None**.
+In *Keyword Extractor*, you can search for candidates of potential keywords (tokens that have far more or far less frequency in the observed corpus than in the reference corpus) in different files given a reference corpus, conduct different tests of statistical significance on each keyword and calculate the Bayes factor and effect size for each keyword using different measures. You can adjust the settings for the generated data via **Generation Settings**. You can disable the calculation of statistical significance and/or Bayes factor and/or effect size by setting **Generation Settings → Test of Statistical Significance / Measures of Bayes Factor / Measure of Effect Size** to **None**.
You can filter the results by clicking **Filter results** or search in *Data Table* for parts that might be of interest to you by clicking **Search in results**.
@@ -621,11 +621,11 @@ You can generate line charts or word clouds for keywords using any statistics. Y
- **11.2 Keyword**
The potential keyword. You can specify what should be counted as a "token" via **Token Settings**.
-- **11.3 Frequency (in Reference File)**
- The number of occurrences of the keyword in the reference file.
+- **11.3 Frequency (in Reference Corpora)**
+ The number of occurrences of the keyword in reference corpora.
-- **11.4 Frequency (in Observed Files)**
- The number of occurrences of the keyword in each observed file.
+- **11.4 Frequency (in Observed Corpus)**
+ The number of occurrences of the keyword in each observed corpus.
- **11.5 Test Statistic**
The test statistic of the significance test conducted on the keyword in each file. You can change the test of statistical significance used via **Generation Settings → Test of Statistical Significance**. See section [12.4.4 Tests of Statistical Significance, Measures of Bayes Factor, & Measures of Effect Size](#doc-12-4-4) for more details.
diff --git a/wordless/wl_file_area.py b/wordless/wl_file_area.py
index 4848e4be6..b920c9ff7 100644
--- a/wordless/wl_file_area.py
+++ b/wordless/wl_file_area.py
@@ -83,8 +83,10 @@ def __init__(self, main, file_type = 'observed'):
# Suffix for settings
if self.file_type == 'observed':
+ self.tab = 'corpora_observed'
self.settings_suffix = ''
elif self.file_type == 'ref':
+ self.tab = 'corpora_ref'
self.settings_suffix = '_ref'
# Table
@@ -237,17 +239,33 @@ def __init__(self, parent):
self.clicked.connect(self.item_clicked)
# Menu
- self.main.action_file_open_files.triggered.connect(lambda: self.check_file_area(self.open_files))
- self.main.action_file_reopen.triggered.connect(lambda: self.check_file_area(self.reopen))
+ self.main.action_file_open_files.triggered.connect(
+ lambda: self.check_file_area(self.open_files)
+ )
+ self.main.action_file_reopen.triggered.connect(
+ lambda: self.check_file_area(self.reopen)
+ )
- self.main.action_file_select_all.triggered.connect(lambda: self.check_file_area(self.horizontalHeader().select_all))
- self.main.action_file_deselect_all.triggered.connect(lambda: self.check_file_area(self.horizontalHeader().deselect_all))
- self.main.action_file_invert_selection.triggered.connect(lambda: self.check_file_area(self.horizontalHeader().invert_selection))
+ self.main.action_file_select_all.triggered.connect(
+ lambda: self.check_file_area(self.horizontalHeader().select_all)
+ )
+ self.main.action_file_deselect_all.triggered.connect(
+ lambda: self.check_file_area(self.horizontalHeader().deselect_all)
+ )
+ self.main.action_file_invert_selection.triggered.connect(
+ lambda: self.check_file_area(self.horizontalHeader().invert_selection)
+ )
- self.main.action_file_close_selected.triggered.connect(lambda: self.check_file_area(self.close_selected))
- self.main.action_file_close_all.triggered.connect(lambda: self.check_file_area(self.close_all))
+ self.main.action_file_close_selected.triggered.connect(
+ lambda: self.check_file_area(self.close_selected)
+ )
+ self.main.action_file_close_all.triggered.connect(
+ lambda: self.check_file_area(self.close_all)
+ )
- self.main.tabs_file_area.currentChanged.connect(lambda: self.check_file_area(self.model().itemChanged.emit, self.model().item(0, 0)))
+ self.main.tabs_file_area.currentChanged.connect(
+ lambda: self.check_file_area(self.model().itemChanged.emit, self.model().item(0, 0))
+ )
def item_changed(self):
super().item_changed()
@@ -391,10 +409,10 @@ def check_file_area(self, op, *args, **kwargs):
if (
(
self.file_type == 'observed'
- and self.main.tabs_file_area.tabText(self.main.tabs_file_area.currentIndex()) == self.tr('Observed Files')
+ and self.main.tabs_file_area.tabText(self.main.tabs_file_area.currentIndex()) == self.tr('Observed Corpora')
) or (
self.file_type == 'ref'
- and self.main.tabs_file_area.tabText(self.main.tabs_file_area.currentIndex()) == self.tr('Reference Files')
+ and self.main.tabs_file_area.tabText(self.main.tabs_file_area.currentIndex()) == self.tr('Reference Corpora')
)
):
return op(*args, **kwargs)
diff --git a/wordless/wl_keyword_extractor.py b/wordless/wl_keyword_extractor.py
index 2aa79989b..a89032472 100644
--- a/wordless/wl_keyword_extractor.py
+++ b/wordless/wl_keyword_extractor.py
@@ -364,7 +364,7 @@ def __init__(self, parent):
self.main.wl_file_area_ref.table_files.model().itemChanged.connect(self.file_changed)
- # Enable the buttons and prompt the user if there are only observed files or only reference files
+ # Enable the buttons and prompt the user if there are only observed corpora or only reference corpora
def file_changed(self):
if list(self.main.wl_file_area.get_selected_files()) or list(self.main.wl_file_area_ref.get_selected_files()):
self.button_generate_table.setEnabled(True)
@@ -373,29 +373,29 @@ def file_changed(self):
self.button_generate_table.setEnabled(False)
self.button_generate_fig.setEnabled(False)
- def wl_msg_box_missing_files_observed(self):
+ def wl_msg_box_missing_corpus_observed(self):
wl_msg_boxes.Wl_Msg_Box_Warning(
self.main,
- title = self.tr('Missing Observed Files'),
+ title = self.tr('Missing Observed Corpus'),
text = self.tr('''
-