Contrast set

A contrast set is a bounded collection of items, each of which could fill the same slot in a given schema, syntactic structure, or other linguistic environment. The seven days of the week, the fifty United States, the eight Hawaiian islands, the letters in the alphabet, the categories "male" and "female," the students in a class, or the flavors on offer at an ice cream store are all examples of contrast sets.

Contrast sets may be relatively natural in origin (such as the eight Hawaiian islands) or relatively conventional (such as the fifty United States). The mastery of certain conventional contrast sets is essential to basic socialization: for example, calendrical units, musical notes, and elements of writing systems like numerals and the alphabet. These contrast sets frequently become the subject of synesthesias or ideasthesias.

Semantic relations that form or represent contrast sets include cohyponymy (for example, major categories of trees include pine, elm, willow, maple, and so on) and comeronymy (for example, major components of a motor vehicle include an engine or motor, a transmission, one or more batteries, a set of wheels and tires, and so on).

Linguistic anthropologists Harold Conklin and Charles Frake were the first to work out the concept of the contrast set in the 1950s, and the concept was described in detail in Frake's article "The ethnographic study of cognitive systems."[1]

Knowledge representation and reasoning aims to allow information technology to recognize and make use of the meaning and interrelationships of contrast sets. For example, ontology components for ontologies, as well as graph databases, are tools to help with that goal.

JSON Schema

Can be defined in JSON schema using the "enum" keyword.[2]

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "color": {
      "type": "string",
      "enum": ["red", "green", "blue"]
    }
  },
  "required": ["color"]
}

References

  1. ^ Frake, Charles O. (1969). "The Ethnographic Study of Cognitive Systems". In Tyler, Stephen (ed.). Cognitive Anthropology. New York: Holt, Rinehart and Winston. pp. 28–41. ISBN 0-03-073255-7.
  2. ^ Wright, Austin. "JSON Schema Validation: A Vocabulary for Structural Validation of JSON". json-schema.org. Retrieved 22 June 2025.


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.