Skip to contents

Determine if a term is likely a specific biomedical entity with improved accuracy

Usage

is_valid_biomedical_entity(term, claimed_type = NULL)

Arguments

term

Character string, the term to check

claimed_type

Character string, the claimed entity type of the term

Value

Logical, TRUE if the term is likely a valid biomedical entity, FALSE otherwise

Examples

# Test biomedical entity validation
is_valid_biomedical_entity("migraine", "disease")  # Should return TRUE
#> [1] TRUE
is_valid_biomedical_entity("receptor", "protein")  # Should return TRUE
#> [1] TRUE
is_valid_biomedical_entity("optimization", "chemical")  # Should return FALSE
#> [1] FALSE
is_valid_biomedical_entity("europe", "disease")  # Should return FALSE
#> [1] FALSE