<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Sarah,<div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>English language code is three letters as all other language codes are. For English the code is "eng".<br class=""><div class="">
<br class=""><br class="">Leonid.
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Feb 24, 2020, at 20:18, Sarah Surrain <<a href="mailto:sarahsurrain@gmail.com" class="">sarahsurrain@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<br class=""><br class="">I am working with Spanish-English bilingual data from parent-child dyads. In the header, I have specified the languages as <br class="">@Languages: spa, en<br class="">and I have used [- eng] precodes for English utterances and @s tags on English words embedded in Spanish utterances.<br class=""><br class="">I would like to use gem markers to segment the transcripts by activity (such as book reading) and then run a freq command to count the number of tokens in Spanish and English used by the parent and child during that activity.<br class=""><br class="">I used this command to retrieve only the book reading activities and create new CHAT files with headers:<br class="">gem +sbook +d1 +f *.cha<br class=""><br class="">Then I tried these commands on the output to create an Excel file with the types, tokens, TTR and MATTR for each language:<br class="">freq +l +s*@s:eng +d3 +b10 *.cha<br class="">freq +l +s*@s:spa +d3 +b10 *.cha<br class=""><br class="">However, I am getting these errors: <br class="">Language "eng" is not defined on "@Languages:" header tier.<br class="">and<br class="">Illegal use of "@s", no alternative language in position 1 defined on @Language: tier.<br class=""><br class="">I can fix this by manually pasting the @Languages line into the header in the new file that I created using the gem command. Is there a way to automatically create CHAT files using the gem command that retain the @Languages line?<br class=""><br class="">(I also tried the gemfreq command (gemfreq +sbook +l +s*@s:eng +d3 +b10 *.cha) but I wasn't able to create an excel worksheet with the types, tokens, etc for each participant. I got the error: The only +d levels allowed are 0–1).<br class=""><br class="">Thank you!<br class=""><br class=""><div class="">Sarah Surrain <span style="caret-color: rgb(0, 0, 0); font-family: sans-serif; font-size: inherit; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><br class=""></span></div><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: sans-serif; font-size: inherit; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><br class=""></span></div>Sarah Surrain, Ed.M.<br class="">Ph.D. Candidate<br class="">Harvard University FAS | GSE<br class=""><a href="https://scholar.harvard.edu/sarahsurrain" class="">https://scholar.harvard.edu/sarahsurrain</a><br class=""></div><div class=""><br class="webkit-block-placeholder"></div>
-- <br class="">
You received this message because you are subscribed to the Google Groups "chibolts" group.<br class="">
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com" class="">chibolts+unsubscribe@googlegroups.com</a>.<br class="">
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/11b1fe6c-0bf5-421f-98b1-2e76aeaa71bd%40googlegroups.com?utm_medium=email&utm_source=footer" class="">https://groups.google.com/d/msgid/chibolts/11b1fe6c-0bf5-421f-98b1-2e76aeaa71bd%40googlegroups.com</a>.<br class="">
</div></blockquote></div><br class=""></div></body></html>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "chibolts" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com">chibolts+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/452CE2B1-70F9-4E46-B3A2-2C3F1726531F%40andrew.cmu.edu?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/452CE2B1-70F9-4E46-B3A2-2C3F1726531F%40andrew.cmu.edu</a>.<br />