<?xml version="1.0" encoding="UTF-8"?>
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
<?xml-model href="http://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>
<classSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="att.cmc" type="atts" xml:id="class-attr-cmc" module="tei">
  <gloss versionDate="2023-11-24" xml:lang="en">computer-mediated communication</gloss>
  <desc versionDate="2021-09-07" xml:lang="en">provides attributes categorizing how the element content was created in a CMC environment.</desc>
  <attList>
    <attDef ident="generatedBy" mode="add" module="cmc" usage="opt">
      <gloss versionDate="2021-09-07" xml:lang="en">generated by</gloss>
      <desc versionDate="2021-09-07" xml:lang="en">categorizes how the content of an element was generated in a CMC environment.</desc>
      <datatype minOccurs="1" maxOccurs="1">
        <dataRef key="teidata.enumerated"/>
      </datatype>
      <constraintSpec scheme="schematron" ident="CMC_generatedBy_within_post" xml:lang="en">
        <constraint>
          <sch:rule context="tei:*[@generatedBy]">
            <sch:assert test="ancestor-or-self::tei:post">The @generatedBy attribute is for use within a &lt;post&gt; element.</sch:assert>
          </sch:rule>
        </constraint>
      </constraintSpec>
      <valList type="semi">
        <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
        <!-- This list is duplicated in "CMCcmcatts", so if you make a
             change here, make it there, too! -->
        <valItem ident="human">
          <desc versionDate="2021-09-07" xml:lang="en">the content was
          <soCalled>naturally</soCalled> typed or spoken by a human user</desc>
        </valItem>
        <valItem ident="template">
          <desc versionDate="2021-09-07" xml:lang="en">the content was
          generated after a human user activated a template for its
          insertion</desc>
        </valItem>
        <valItem ident="system">
          <desc versionDate="2021-09-07" xml:lang="en">the content was
          generated by the system, i.e. the CMC environment</desc>
        </valItem>
        <valItem ident="bot">
          <desc versionDate="2024-05-17" xml:lang="en">the content was
          generated by a bot, i.e. a non-human agent, typically one
          that is not part of the CMC environment itself</desc>
        </valItem>
        <valItem ident="unspecified">
          <desc versionDate="2024-05-17" xml:lang="en">the content was
          generated by an unknown or unspecified process</desc>
        </valItem>
      </valList>
      
      <exemplum type="Chat2CLARIN" versionDate="2021-09-07" xml:lang="en">
        <p>automatic system message in chat: user moves on to another
        chatroom</p>
        <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="class-attr-cmc-egXML-sc">
          <post type="event" generatedBy="system" who="#system" rend="color:blue">
            <p>
              <name type="nickname" corresp="#A02">McMike</name> geht
              in einen anderen Raum: <name type="roomname">Kreuzfahrt</name>
            </p>
          </post>
        </egXML>
      </exemplum>
      
      <exemplum type="Chat2CLARIN" versionDate="2021-09-07" xml:lang="en">
        <p>automatic system message in chat: user enters a chatroom</p>
        <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="class-attr-cmc-egXML-ui">
          <post type="event" generatedBy="system">
            <p>
              <name type="nickname" corresp="#A08">c_bo</name> betritt
            den Raum. </p>
          </post>
        </egXML>
      </exemplum>
      
      <exemplum type="Chat2CLARIN" versionDate="2021-09-07" xml:lang="en">
        <p>automatic system message in chat: user changes his font color</p>
        <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="class-attr-cmc-egXML-ed">
          <post type="event" generatedBy="system" rend="color:red">
            <p>
              <name type="nickname" corresp="#A08">c_bo</name> hat die
              Farbe gewechselt.
            </p>
          </post>
        </egXML>
      </exemplum>
      
      <exemplum type="wikitalk" versionDate="2021-09-07" xml:lang="en">
        <p>An automatic signature of user including an automatic timestamp
        (Wikipedia discussion, anonymized). The specification of
        <att>generatedBy</att> at the inner element <gi>signed</gi> is
        meant to override the specification at the outer element
        <gi>post</gi>. This is generally possible when the outer
        <att>generatedBy</att> value is "human".</p>
        <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="class-attr-cmc-egXML-mz">
          <post type="standard" generatedBy="human" indentLevel="2" synch="#t00394407" who="#WU00005582">
            <p> Kurze Nachfrage: Die Hieros für den Goldnamen stammen
              auch von Beckerath gem. Literatur ? Grüße --</p><signed generatedBy="template" rend="inline"><gap reason="signatureContent"/><time generatedBy="template">18:50, 22. Okt. 2008 (CEST)</time></signed>
          </post>
        </egXML>
      </exemplum>   
  <!--  2024-07-02 ebb removing this because the post information is lacking and a little confusing. Replacing with an alternative usenet example on post.xml  
    <exemplum type="usenet" versionDate="2021-09-07" xml:lang="en">
        <p>Usenet news message: a client-generated line that introduces a
        quotation from a previous message (similar to email):</p>
        <egXML xmlns="http://www.tei-c.org/ns/Examples">
          <post type="event" when="2015-04-02T06:30:00Z">
            <cit type="replyCit" generatedBy="template">
              <bibl type="introQuote">Am 03.04.2015 um 09:46 schrieb [_NAME_]:</bibl>
              <quote> ... </quote>
            </cit>
          </post>
        </egXML>
      </exemplum>-->  
      <exemplum type="wikitalk" versionDate="2021-09-07" xml:lang="en">
        <p>Wikipedia talk page: user signature</p>
        <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="class-attr-cmc-egXML-al">
          <post type="written" generatedBy="human"> 
            <!-- ... main content of posting ... -->
            <signed generatedBy="template">
              <gap reason="signatureContent"/>
              <time generatedBy="template">12:01, 12. Jun. 2009 (CEST)</time>
            </signed>
          </post>
        </egXML>
      </exemplum>
      
    </attDef>
    
  </attList>
</classSpec>
