Skip to content

Commit

Permalink
Merge pull request #507 from monarch-initiative/matentzn-patch-3
Browse files Browse the repository at this point in the history
Update some keys in mondo-match-rules.yaml to conform to latest OAK release
  • Loading branch information
twhetzel authored May 3, 2024
2 parents 5a54e99 + 29649b8 commit e093456
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ontology/config/mondo-match-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,50 +63,50 @@ rules:
weight: 2.0

# - synonymizer:
# the_rule: Remove parentheses bound info from the label.
# description: Remove parentheses bound info from the label.
# match: r'\([^)]*\)'
# match_scope: "*"
# replacement: ""

- synonymizer:
the_rule: Remove box brackets bound info from the label.
description: Remove box brackets bound info from the label.
match: r'\[[^)]*\]'
match_scope: "*"
replacement: ""

# - synonymizer:
# the_rule: Remove abbreviations.
# description: Remove abbreviations.
# match: r'\b[A-Z][a-zA-Z\.]*[A-Z]\b\.?' [a-zA-Z]*\d
# match_scope: "*"
# replacement: ""

# - synonymizer:
# the_rule: Remove abbreviations that end with a number in them.
# description: Remove abbreviations that end with a number in them.
# match: r'[a-zA-Z]*\d[a-zA-Z]*'
# match_scope: "*"
# replacement: ""

- synonymizer:
the_rule: Broad match terms with the term 'other' in them.
description: Broad match terms with the term 'other' in them.
match: r'(?i)^Other '
match_scope: "*"
replacement: ""
qualifier: "broad"

- synonymizer:
the_rule: Replace disease with disorder in the label.
description: Replace disease with disorder in the label.
match: r'disease'
match_scope: "*"
replacement: "disorder"

- synonymizer:
the_rule: Replace numbers by "type number" in the label.
description: Replace numbers by "type number" in the label.
match: r'(?<!type)\s(\d)'
match_scope: "*"
replacement: " type \\1"

- synonymizer:
the_rule: Replace "'s" by "s" in the label.
description: Replace "'s" by "s" in the label.
match: r'\'s'
match_scope: "*"
replacement: "s"
Expand Down

0 comments on commit e093456

Please sign in to comment.