Skip to content

Commit

Permalink
Don't separate POS data from etymology and notes data
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Dec 12, 2023
1 parent 083bca4 commit 796bd9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wiktextract/extractor/fr/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def process_pos_block(
pos_title: str,
):
pos_type = wxr.config.POS_SUBTITLES[pos_argument]["pos"]
page_data.append(copy.deepcopy(base_data))
if len(page_data) == 0 or "pos" in page_data[-1]:
page_data.append(copy.deepcopy(base_data))
page_data[-1]["pos"] = pos_type
page_data[-1]["pos_title"] = pos_title
child_nodes = list(pos_title_node.filter_empty_str_child())
Expand Down

0 comments on commit 796bd9f

Please sign in to comment.