Skip to content

Commit

Permalink
Update elevation trait and name terms
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed Nov 17, 2023
1 parent 034d1ad commit f340c98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions traiter/pylib/traits/elevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def to_dwc(self, dwc) -> DarwinCore:

@property
def key(self):
return DarwinCore.ns("verbatimElevation")
return DarwinCore.ns("elevation")

@classmethod
def pipe(cls, nlp: Language):
Expand Down Expand Up @@ -83,12 +83,12 @@ def elevation_compilers(cls):
"sp": {"IS_SPACE": True},
},
patterns=[
"label+ :? sp? about? ,? 99 m",
"label+ :? sp? about? ,? 99 m ( 99 m ,? )",
"label+ :? sp? about? ,? 99 m / 99 m",
" about? ,? 99 m ( 99 m ,? )",
" about? ,? 99 m / 99 m",
"label+ :? sp? about? ,? 99 -/to 99 m",
"label+ :? sp? about? ,? 99 sp? m",
"label+ :? sp? about? ,? 99 sp? m sp? ( 99 m ,? )",
"label+ :? sp? about? ,? 99 sp? m sp? / 99 m",
" about? ,? 99 sp? m sp? ( 99 m ,? )",
" about? ,? 99 sp? m sp? / 99 m",
"label+ :? sp? about? ,? 99 sp? -/to sp? 99 sp? m",
],
),
]
Expand Down
5 changes: 3 additions & 2 deletions traiter/pylib/traits/terms/name_terms.csv
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ not_name,mexico,lower,
not_name,mile,lower,
not_name,misc,lower,
not_name,misc.,lower,
not_name,mountain,lower,
not_name,mountains,lower,
not_name,mt,lower,
not_name,mt.,lower,
not_name,museum,lower,
Expand All @@ -213,6 +211,7 @@ not_name,northeast,lower,
not_name,northern,lower,
not_name,northwest,lower,
not_name,nouvelle,lower,
not_name,number,lower,
not_name,occasional,lower,
not_name,occurrence,lower,
not_name,ocean,lower,
Expand Down Expand Up @@ -336,6 +335,8 @@ not_name_prefix,the university,lower,
not_name_prefix,the university of,lower,
not_name_suffix,collection,lower,
not_name_suffix,foundation,lower,
not_name_suffix,mountain,lower,
not_name_suffix,mountains,lower,
not_name_suffix,mts,lower,
not_name_suffix,mts.,lower,
not_name_suffix,reserve,lower,
Expand Down

0 comments on commit f340c98

Please sign in to comment.