Consider a replace keyword command
- Dominant language
- Python
- Stars
- 23
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
This may be out of scope but wanted to add for discussion.
Frequently we want to replace instances of a token, word, or phrase in lexical ontology elements such as labels, definitions.
E.g
https://wiki.geneontology.org/Ontology_meeting_2024-04-08#Bulk_update_specific_keywords
This may be out of scope as it drifts into NLP territory. How are the boundaries of words or tokens defined? Do we have different tokenizers for chemicals vs biological language? What about bespoke rules that exclude certain tokens from replacement in some contexts?
This may be better handled by a separate tool that generates KGCL rename and redefine commands given an ontology plus some replacement rules.
In fact the logic is very similar to that uses for the synonymizer
Contributor guide
Research direction
Start with the linked bulk-update discussion and review the existing synonymizer logic, which the issue identifies as a similar case. Before implementation, clarify whether this belongs in KGCL or a separate tool, including tokenization and context rules; the issue currently does not define a concrete done state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100