<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Janet,<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Yes, the second "<font color="#0433ff">chstring -w +s"&+~" "&~" +s"&+=" "&=" +s"&+-" "&-" *.cha</font>" command would fix the <font color="#0433ff">&=</font> option. The CHSTRING option <font color="#ff2600">+s"&+=" "&="</font> will do just that fix. The one thing you need to worry about is the file names. The first command does work on the *.cha file, but it will create output *.chstr.cex files. So, the second command will need an input file to be *.chstr.cex.<div><br><div>You can streamline the process if you backup your data files first. Then you can make the CHSTRING changes on the copy *.cha data files. In this case use following commands:</div><div><br></div><div>1st: <font color="#ff2600">chstring -w +s"&" "&+" +1 *.cha</font></div><div><br></div><div>2nd: <font color="#ff2600">chstring -w +s"&+~" "&~" +s"&+=" "&=" +s"&+-" "&-" +1 *.cha</font><br id="lineBreakAtBeginningOfMessage"><div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class="Apple-interchange-newline"><br></div><div style="caret-color: rgb(0, 0, 0); font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; 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;"><span style="color: rgb(0, 0, 0);">In the end you can use FREQ command </span><font color="#ff2600">freq +o3 +u +s&* *.cha</font> to get the full list of all &... codes in your data files. If you see any bad codes, then just use 2nd CHSTRING command to fix them too. Or run CHECK command.</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">Please, CHECK your data files in the end for errors and may be visually examine few files just to be sure that they look okay.</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">Leonid.</div>

</div>
<div><br><blockquote type="cite"><div>On Jun 3, 2025, at 16:09, 'Janet Bang' via chibolts <chibolts@googlegroups.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr">Hi Leonid, <div><br></div><div>Thanks! I was worried about using chstring because we also used the "&=" for simple events, but so would the second chstring command address that issue?</div><div><br><div>I'll also test this out a few files, rather than doing this to the whole corpus at once and let you know if I have any questions. </div></div><div><br></div><div>Janet</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Jun 3, 2025 at 11:54 AM Leonid Spektor <<a href="mailto:spektor@andrew.cmu.edu">spektor@andrew.cmu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Janet,<div><br></div><div><span style="white-space:pre-wrap"> </span>Sorry for delay in reply. I remember that we had to do the same thing for our data and I vaguely remember we had a command to do it for many files at the time. But, unfortunately I cannot seem to find that command anywhere.</div><div><br></div><div><br></div><div>One suggestion I have to use BBEdit editor. It has a good Grep function which will help identify the right "&" symbols.</div><div><br></div><div><br></div><div>You can also do it in two passes. First, use the following command to replace all '&' symbols with '&+':</div><div><br></div><div>chstring -w +s"&" "&+" *.cha</div><div><br></div><div>Next use CHSTRING command to replace mistakes that the first command might have created. For example,</div><div><br></div><div>chstring -w +s"&+~" "&~" +s"&+=" "&=" +s"&+-" "&-" *.cha</div><div><div>
<div style="font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;"><br><br></div><div style="font-family: Arial; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;">Leonid.</div>

</div>
<div><br><blockquote type="cite"><div>On Jun 2, 2025, at 18:21, 'Janet Bang' via chibolts <<a href="mailto:chibolts@googlegroups.com" target="_blank">chibolts@googlegroups.com</a>> wrote:</div><br><div>Hello, <br><br>I am preparing transcripts to contribute to CHILDES, and at the time of transcription we were using the "&" symbol for phonological fragments. <div><br></div><div>Is there a code that we could use to automatically replace these to the "&+"? This was coming up as an error when using CHECK, and I was hoping to clear these to identify any other issues before contributing. <br><br>Thank you!<br>Janet</div><div><br></div>

-- <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" target="_blank">chibolts+unsubscribe@googlegroups.com</a>.<br>
To view this discussion visit <a href="https://groups.google.com/d/msgid/chibolts/837c4db2-b024-4b6a-a5d5-902d03eddf60n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/chibolts/837c4db2-b024-4b6a-a5d5-902d03eddf60n%40googlegroups.com</a>.<br>
</div></blockquote></div><br></div></div><div><br class="webkit-block-placeholder"></div>

-- <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" target="_blank">chibolts+unsubscribe@googlegroups.com</a>.<br>
To view this discussion visit <a href="https://groups.google.com/d/msgid/chibolts/B246CE0C-7F2C-4AEF-AA0D-38A94368388A%40andrew.cmu.edu?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/chibolts/B246CE0C-7F2C-4AEF-AA0D-38A94368388A%40andrew.cmu.edu</a>.<br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Janet Y. Bang, Ph.D (she/her/hers)</div><div>Assistant Professor</div><div>Child and Adolescent Development</div><div>Lurie College of Education, San José State University</div><div><a href="mailto:janet.bang@sjsu.edu" target="_blank">janet.bang@sjsu.edu</a> | 408-924-3714</div><div><a href="https://www.sjsu.edu/education/faculty/janet-bang.php" target="_blank">https://www.sjsu.edu/education/faculty/janet-bang.php</a><br></div></div></div><div><br class="webkit-block-placeholder"></div>

-- <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 visit <a href="https://groups.google.com/d/msgid/chibolts/CAL7GuZqg771MojU97XPeFMda4JX%2B9YLY7j29_aEbduRwG5N7qQ%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/CAL7GuZqg771MojU97XPeFMda4JX%2B9YLY7j29_aEbduRwG5N7qQ%40mail.gmail.com</a>.<br>
</div></blockquote></div><br></div></div></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 visit <a href="https://groups.google.com/d/msgid/chibolts/589D551D-F09F-4B17-A2FD-502AE5262246%40andrew.cmu.edu?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/589D551D-F09F-4B17-A2FD-502AE5262246%40andrew.cmu.edu</a>.<br />