Ask a Question(Create a thread) |
|
Split by, split onGrammar questions– conjugations, verb tenses, adverbs, adjectives, word order, syntax, etc. |
![]() |
|
Thread Tools |
#1
|
|||
|
|||
Split by, split on
Hi,
This is a distinction I'm not at all sure of. The following is my guess, not a certainty. Here's a string of words: "alfa bravo charlie delta" This is the string split: ("alfa" "bravo" "charlie" "delta") Is it correct to say that the string is split by words, on spaces? Last edited by Tyrn; March 15, 2024 at 11:56 PM. |
Get rid of these ads by registering for a free Tomísimo account.
|
#2
|
||||
|
||||
I would say that I split the string on spaces (or at spaces)* in order to split it into words, but only when talking about strings that are similar to your example string, which contains only arbitrary groups of alphabetic characters separated by one and only one space character.
If I don't know whether a string is guaranteed to satisfy that restriction, I would say that I split the string on spaces in order to split it into substrings. For example, if I split the previous sentence on spaces, some of the substrings are "substrings." and "restriction,", which are not words in a strict sense, as the punctuation marks "." and "," are not part of the spelling of words in English. Disclaimer: by education I'm a computer scientist, and I've worked as a computer programmer for more than 36 years. *for reference, the documentation from Microsoft about the Split function in the .Net framework uses "at spaces" rather than "on spaces": https://learn.microsoft.com/en-us/do...MSDN#overloads Last edited by wrholt; March 15, 2024 at 06:08 PM. |
#6
|
||||
|
||||
Quote:
![]() |
![]() |
Link to this thread | |
|
|