Hi Chat GPT, I want to start a JavaScript class that is sort of a string class but is…
Jump to turn (12)
- 1Hi Chat GPT, I want to start a JavaScript class that is sort of a string class b
- 2I would like to handle space differently than other punctuation, it's sort of an
- 3It looks pretty good. Why don't you go ahead and build it out a little bit. Just
- 4I'd like to work on a particular method that is going to be really important. Th
- 5That looks good, I'd like to make an addition building on that idea, but making
- 6Yep, go for it
- 7Sounds pretty good. I haven't had time to go through it line by line since I'm o
- 8Oh please do flesh out the punctuation class as best you can.
- 9Yes, that approach makes plenty of sense, go ahead and do the basic logic for.,!
- 10Looks good now. Can you go ahead and do that backtracking and whatever within th
- 11Looks good, now what I'll probably need is a HTML file that can be used as a tes
- 12Okay, I'll wrap it up for now, with one last request, find anything in the above
- User
Hi Chat GPT, I want to start a JavaScript class that is sort of a string class but is done a particular way where it each string is broken down into words, spaces and punctuation symbols, each of which is an object which contains not only the string, but it can optionally have a time associated with it, such as if we are storing it as lyrics to a video, it can also have a reference to a element such as a span that contains that part of the string, and it can be a punctuation symbol that will contain one of many punctuation types, and each punctuation type will have some smarts to know whether it can be followed by a space or before a space, including some logic for handling quotation marks since they are sort of special cases including single quotes and double quotes. The library would allow various operations such as comparing to strings, where it would do it. Word by word. This will be used in a speech recognition app, and while I don't want to tie it two directly to the speech recognition part of it, I want that understood in its design. It will be treating incoming potential strings as a series of words and spaces and punctuation, and comparing it to ones that it already has but hasn't finalized, as is the case with speech recognition. To be very robust and it's initial implementation, and allow for a bunch of operations such as string, compare string combine, etc, and it can support being attached to a DOM UI that has some of them visible and possibly being replaced soon as new words come in or as the speech recognition app recognizes things as commands. Can we talk about how this might work, before we put it together?