Skip to content

Commit

Permalink
[fr] don't add tag in "fr-verbe-flexion" template as form
Browse files Browse the repository at this point in the history
this last cell seems always have the same word as page title
  • Loading branch information
xxyzz committed Nov 28, 2024
1 parent 0fb0f76 commit f3bc491
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wiktextract/extractor/fr/inflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ def process_inflection_table(
form_data.raw_tags.extend(row_headers)
if form_data.form != "":
for form in form_data.form.splitlines():
if form.startswith("(") and form.endswith(")"):
form_data.raw_tags.append(form.strip("()"))
continue
new_form_data = form_data.model_copy(deep=True)
new_form_data.form = form.removeprefix("ou ")
translate_raw_tags(
Expand Down

0 comments on commit f3bc491

Please sign in to comment.