I'm looking for an umbrella term for "next" and "previous" so that I don't have to call my programming methods "NextPrevious".

Is there a hypernym for the two?


2 Answers 2


How about adjacent:

Next to or adjoining something else

Other options you could incorporate into your method name include near, neighbor, and one over.


If you are iterating some list-like recursive structure, same level entities can be called siblings. For example, in tree children sharing the same parent are called siblings.

But sibling include also the current node, compare to which one other nodes can are next or previous.

If next and previous are something about, say, navigation buttons, better stay with those words.

  • 1
    This is for paging, but I don't think sibling would be appropriate. For example if I was on Page 5, I'm referring to Page 4 and 6. Whereas sibling would refer to all pages
    – Curtis
    Oct 17, 2012 at 15:13
  • Good points. If the OP offers more details about what his method does, perhaps we could give a more apt name. However, the question is ultimately about the hypernym for the terms. Sibling, like neighbor in my answer, sort of works (in a programming context).
    – Zairja
    Oct 17, 2012 at 15:15
  • @Curt, oh, I see, I've thought you are searching an umbrella term in a more general sense )
    – shabunc
    Oct 17, 2012 at 15:16
  • @Zairja, neighbour is a better choice, so I've upvoted your answer)
    – shabunc
    Oct 17, 2012 at 15:17

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.