10

I need to know the relationship of two words for a computer programming problem.

So for example, dog and cat are mammals and animals. Fork and spoon are silverware. GameCube and PlayStation are video game consoles. And so on and so on.

What are the relationship between these words? Enter and Exit. Join and Quit. Coming and Going.

I was thinking the relationship between the words above is presence. But this seems clunky to me. Does anyone have a better suggestion?

Thank you!

  • 1
    Are we talking about the relationships of the words in each pair or the relationship between the pairs of words? If the latter, does antonyms work? – as4s4hetic Aug 14 '17 at 13:12
  • I updated the question to improve the formatting. Looking for the relationship between enter and exit. Not sure if this would also be considered some type of grouping as the examples are provided above. Truck and car are automobiles. Grass and tree's are plants. etc – unenergizer Aug 14 '17 at 13:18
  • 1
    How about direction? – thomj1332 Aug 14 '17 at 13:24
  • The examples you're asking about have a relationship of a different nature from the first set of examples, in that they are opposed to one another. – phoog Aug 14 '17 at 13:27
  • 1
    Fairly off-topic, but if you're working with words and relationships between them, without knowing the actual project, you might want to check out word-to-vec and wordnet – bendl Aug 14 '17 at 15:40
26

You're looking for hypernyms.

hypernym noun A word with a broad meaning constituting a category into which words with more specific meanings fall; a superordinate. For example, colour is a hypernym of red. - ODO

Consider the following:

  • enter and exit are forms of access;
  • join and quit are types of membership-change requests; and
  • coming and going are types of travel.
  • 1
    Good, simple answer to a great question. – Vocoder Aug 14 '17 at 13:33
  • 2
    And here I was thinking he wanted antonyms. Thoughtful answer. – Eric Hauenstein Aug 14 '17 at 15:43
  • 3
    Learned something new, cheers! & if the OP is looking for the relationship between the pairs, they would be "co-hyponyms", according to the linked Wiki page: Co-hyponyms are labelled as such when separate hyponyms share the same hypernym but are not hyponyms of one another, unless they happen to be synonymous. For example, screwdriver, scissors, knife, hammer are all co-hyponyms of tool, but not hyponyms of one another – anotherdave Aug 14 '17 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.