« first day (1430 days earlier)      last day (3509 days later) » 

2:12 AM
Sorry for the random post. I was wondering: Is there a methodical approach to roughly calculate the number of syllables in English?
 
@Louis What do you mean? As an average? The sum of all syllables in all words?
 
2:42 AM
@terdon I meant distinct units of sound or letter arrangement that produce a syllable. I ask after being able to easily count the number in Japanese in minutes.
 
@Louis Ah, in terms of sounds produced, not words. Do you mean phonemes or syllables? Either way, that sounds like a decent question for Linguistics.
 
3:21 AM
Yo yo.
 
3:37 AM
@terdon I think phonemes are too primitive, I looked there but found in English there are only 40 or so. In the language that made me wonder what the English equivalent was, let's imagine there are 5 vowels and 5 consonants. A row x column grid is what this group of speakers are agreed to use giving 50 sounds (in double in practice with some equally simple modifications).
But in looking at phonemes I don't think they mattered here, yet clearly all languages share the idea produced by this consonant x vowel grid.
I thought the idea was "syllables".
 
@Louis It may well be, I don't know. Cerberus or tchrist probably will.
 
sorry for the grammar mistakes, let me know if my meaning wasn't clear!
 
@Louis Your meaning is fine, I just don't know any more than you do :)
 
i meant to say 5 vowels and 10 consonants, would give 50 sou/nds in a grid.
okay heheh
i snuck home to eat a pizza and reply
in between some IPAs
The iOS app needs work
 
Yes, I was thinking the IPA would help. But it's phonemes really, not syllables.
 
3:41 AM
@Louis Not sure what you mean, but there are many more phonemes than 5 consonants and 5 vowels.
 
You should try asking this on the main site.
 
And there are more possible combinations: V, VC, CV, CVC, CCV, CCVCC...
 
@Cerberus I think he's trying to get an estimate of the number of different syllables as in pa, ba, po, bo. Not entirely sure what the definiton of a syllable would be here but that's the general idea.
 
Well, then there are a lot more than 5x10.
 
How many distinct syllables exist in the English language. Taking into account the differences in dialect, the number is probably ridiculously large and possibly impossible to define.
 
3:43 AM
a, ap, pa, pap, pra, prast...
 
Ugh, exactly.
 
@terdon Exist, or are possible?
But either way the number will be very large.
 
Exist I think but it's not my question.
 
OK.
Still much larger than 50.
 
I think the 50 was just an illustrative example.
 
3:48 AM
I will be far larger anyway...
 
 
1 hour later…
user116848
4:55 AM
I have a grammar question
 
user116848
Anyone here?
 
user116848
Hi
 
5:50 AM
Ask!
 
6:24 AM
a way!
:-)
 
7:08 AM
This chat is dead.
@Cerberus You will be far larger? LOL.
 
@JasperLoy Is it your picture?
 
@IceGirl When I was 16, lol.
 
OK
 
7:22 AM
I should go to bed soon. I did not sleep last night.
 
ok rest well
 
No particular reason.
I was reading up on the difference between ELL, ESL, EFL and ESOL, LOL.
 
Anonymous
8:00 AM
@Louis You need to take into account phonotactics.
 
Anonymous
Phonotactics are the rules in a given language describing how sounds fit together.
 
Anonymous
In English, you end up with over 10,000 possible syllables, but not all of them are actually used.
 
Anonymous
English allows all sorts of consonant clusters, as in strengths CCCVCCC
 
Anonymous
You'll notice in Japanese that there's no wi or we because the sequences aren't allowed by Japanese phonotactics. They used to be, so they have obsolete kana, but wu was never allowed so it doesn't have even that. Likewise for yi
 
Anonymous
So it's not as simple as multiplying one number by another
 
Anonymous
8:06 AM
@Louis By the way, although hiragana and katakana are referred to as "syllabaries", they don't really match up with the definition of "syllable" most people use when discussing language.
 
Anonymous
They match up much more closely with morae.
 
Anonymous
And for most purposes, the mora is the most relevant unit for discussion of Japanese
 
Anonymous
Linguists who acknowledge both say that Japanese has light and heavy syllables, consisting of one and two morae respectively
 
Anonymous
So 東京 /toʜ.kyoʜ/ is two heavy syllables, giving us four morae
 
Anonymous
That's phonemic notation which uses /y/ for a palatal glide and /ʜ/ for a long vowel (following most Japanese phonologists), but in phonetic notation it's [toːkʲjoː]
 
Anonymous
8:14 AM
Although people usually discuss morae, the syllable is generally considered relevant to certain aspects of Japanese pronunciation such as pitch accent and the prohibition of superheavy syllables.
 
Anonymous
Most phonologists consider syllables to be a linguistic universal, and they consider the concept relevant to the discussion of every language. Certain linguists (e.g. Labrune) argue, though, that the mora is the only unit relevant to Japanese and that everything can be explained without the concept of syllables
 
9:16 AM
@snailboat what the devil is this lucubration?
@Mr.ShinyandNew安宇 "buckram" means too formal; stilted.
 
9:42 AM
@snailboat Has seppuku ever been committed by Westerners? Is it a common thing in Japan, even today? I have heard that some crazed nationalist died by seppuku in Japan.
 
 
1 hour later…
11:06 AM
@username901345 Hi. :)
 
11:26 AM
:18095106
 
12:18 PM
That's this message
21 hours ago, by Mr. Shiny and New 安宇
@username901345 I don't know what "too buckram" means. I say it's grammatical but it sounds like you have read too many opinionated grammar books with bad advice in them and are over-correcting things that aren't wrong to begin with.
Replies work if you type something after the colon-number reference.
Buckram is a stiff linen -- I've never heard it used as an adjective.
 
:-)
 
Er... yes. (Mods aren't restricted by an edit time limit :-)
 
you earned that privilege
 
1:14 PM
@snailboat Just for your information:
Nicely done. By the way, the MIDDLE DOT U+00B7 has been used as a text separator (more so than as a terminator) for thousands of years, as readily seen in the famous writing found on Trajan’s Column and in many other ancient works. Whether the insular scribes writing in uncial and half-uncial hands consciously mimicked the Roman use or whether it developed on its own as a spontaneous and natural element could be debated, but no scribe familiar with Tiro’s would be unfamiliar with using a · for a separator. — tchrist 5 mins ago
Just as anymore, today, nowadays, insofar, however, and legalese’s whereso were all once written as separate and then for a time hyphenated words, I do wonder when moreso will become an acceptable spelling of more so. It’s technically pleonastic in most of its uses, though, so this might keep it at bay for a while yet. A picky copy editor will blithely s/more so/more/ on sight, and so too will they s/moreso/more/ as well.
Less picky ones might just s/moreso/more so/, but you don’t always want an unpicky copyeditor; else why bother?
And yes, this is the first time I’ve come up for air in like days. Very busy with an imminent release. It was supposed to all go to QA by COB yesterdaddy, but as so often occurs with these things, that didn’t happen and so we shall all be working round the clock through the weekend in preparation.
This is just me waking up slowly with coffee after getting my first full night of sleep the entire previous work-week.
I feel like that adverbial expression of time needs some sort of durable preposition conjoining it to some structural element. Oh well. Today no longer needs one, nor cis-( but not trans-)Atlantically do Saturdays.
 
1:32 PM
@tchrist I refuse to let a job endanger my health anymore.
 
1:53 PM
I refuse to let anything endanger my health.
 
2:09 PM
I refuse to let assholes endanger my mental health anymore.
 
2:22 PM
hi
@StoneyB hello
long time no talk mr?
 
@snailboat Thank you for for sharing that snailboat. And nice username! Clearly I was looking for an answer to something that I think is answerable, but too naive to be able to phrase the question. I think mora is closer, but still too complexly or not well defined enough to describe the units I thought these languages had (in its wiki, even in its general case, the editors left us with item 3 that seems ready to explode away from that section).
If we carried on with the tradition of naming the indivisble with words that end in "ons" then these sounds I was thinking of would be counted in them.
Sounds actually used...like you point out with wi, we.
 
2:40 PM
@tchrist what is you regex for float?
[+-]?\d+(?:[.,]\d+)?(?:[eE][+-]?\d+)?
^ is what I have now
 
 
1 hour later…
4:11 PM
@JohanLarsson Hm. I think I have a couple of them.
 
I think all of yours are > mine
hacked it with TDD googled but did not find something I trusted
 
There should be some SO answer of mine with this.
 
was looking for an SO answer with 500+ upvotes
oh, that would be a trusted source
 
370
A: Matching numbers with regular expressions — only digits and commas

tchristWhat’s a Number? I have a simple question for your “simple” question: What precisely do you mean by “a number”? Is −0 a number? How do you feel about √−1? Is ⅝ or ⅔ a number? Is 186,282.42±0.02 miles/second one number — or is it two or three of them? Is 6.02e23 a number? Is 3.141_592_653_58...

 
[TestCase("1", 1)]
[TestCase(".1", .1)]
[TestCase("-.1", -.1)]
[TestCase("1.2", 1.2)]
[TestCase("-1.2", -1.2)]
[TestCase("1.2E+3", 1.2E+3)]
[TestCase("1.2e+3", 1.2E+3)]
[TestCase("1.2E3", 1.2E3)]
[TestCase("1.2e3", 1.2E3)]
[TestCase("1.2E-3", 1.2E-3)]
[TestCase("1.2e-3", 1.2E-3)]
public void DoublePattern(string s, double expected)
{
    Assert.IsTrue(Regex.IsMatch(s, Parser.DoublePattern));
    Assert.AreEqual(expected, double.Parse(s, CultureInfo.InvariantCulture));
}
 
4:15 PM
@terdon They're very technical linguistics words with very specific applications, so a dictionary's not going to give them in any meaningful way... — Araucaria 41 mins ago
Well, then check a bleedin dictionary and show us!
 
@tchrist insta +1, the title of the question should be edited to be easier to find on google
probably the entire question, edit it to fit your answer imo
 
Which is highest voted question in Stack Exchange(all sites)?
I have seen with 8764 votes up
and answer to that question have 13283 votes up!
 
> base-10 exponent into $7
(?<name>...) > comment imo
comments for explaining what is nonobvious
nvm, continued reading
 
@Freddy Almost certainly whichever is the highest voted on Stack Overflow. The regex html one probably.
 
> Ok fine, I typed all the others in without any syntax errors either, but I’ve been doing this for a while.
 
4:24 PM
@terdon Yes see this!!
 
I have, that's a great answer.
And question.
I'm saying that the highest voted on the network is almost certainly the highest voted on Stack Overflow whichever that is.
And it's that one, yes.
 
@terdon Rubbish.
@JohanLarsson That named subexpressions exist is not comment-worthy.
 
@tchrist I know. Mind you, having read the definitions, I can understand how one can still be confused about it but as it stands, the Q is clearly general reference.
 
> phoneme: A phonological unit of language that cannot be analysed into smaller linear units and that in any particular language is realized in non-contrastive variants. Also attrib. See allophone.
He should be asking his professor if his text confuses him, not us.
 
',' is comma but what is '.' called? point | dot | period?
 
4:30 PM
I know, I'm just saying that I would understand if the question were something like "I've read this definition but I don't understand what "linear units" are in this context.
 
@JohanLarsson U+002E is variously called full stop, period, dot, or decimal point. Note that it may be realized as a raised decimal point when text figures (read: non-lining or lowercase digits) are used.
 
Anonymous
@JohanLarsson In what context, by the way?
 
public static readonly string DoublePointPattern = @"[+-]?\d*(?:.\d+)?(?:[eE][+-]?\d+)?";
public static readonly string DoubleCommaPattern = @"[+-]?\d*(?:,\d+)?(?:[eE][+-]?\d+)?";
@snailboat ^:)
 
You’re playing with fire with those commas; on your head be it.
 
pretty ugly
 
4:34 PM
When you see an ugly painting, do you blame the paint or the painter?
 
The lighting, usually.
 
I blame me for this
 
lucifugous
 
still prototying
 
do you know this?
 
4:35 PM
@tchrist you mean thousand separatrors?
 
Anonymous
@JohanLarsson If I had no further context, I would have said 'period' (or 'full stop' in BrE), but I would call it a 'decimal point' in a number
 
Anonymous
(Compare 'decimal comma')
 
@snailboat reticulated ...do you know this?
 
A numeric leading sign indicator is [\N{PLUS SIGN}\N{MINUS SIGN}\N{HYPHEN-MINUS}].
@JohanLarsson That’s not what you’re doing there.
If they were actually thousands-separators, so to speak, they would be grouped by triples.
$real_rx = qr{ (   # start $1 to hold entire pattern
    ( [+-]? )                  # optional leading sign, captured into $2
    (                          # start $3
        (?=                    # lookahead for what next char *will* be
            [0123456789]       #    EITHER:  an ASCII digit
          | [.]                #    OR ELSE: a dot
        )                      # end lookahead
        (                      # start $4
           [0123456789]{1,3}       # 1-3 ASCII digits to start the number
 
@tchrist yeah I'm not allowing it
 
Anonymous
4:41 PM
Oh, a well-documented RE!
 
Your pattern thinks that ",203948230948230948" is a number; most people would disagree.
 
Anonymous
@JohanLarsson Do you have a specific set of locales your code is supposed to work on?
 
@snailboat Kinda. This one is much better in that regard, since now you name your abstractions:
use 5.010;              # Perl got named patterns in 5.10
$real_rx = qr{
  (?<real_number>
    # optional leading sign
    (?<real_number_sign> [+-]? )
    (?<pre_exponent_part>
        (?=                         # lookahead for what next char *will* be
            [0123456789]            #    EITHER:  an ASCII digit
          | [.]                     #    OR ELSE: a dot
        )                           # end lookahead
        (?<pre_decimal_point>
            [0123456789]{1,3}       # 1-3 ASCII digits to start the number
That way you can later ask for the submatches by name instead of by random numbers.
That is how not to write an ugly regex.
 
Anonymous
Ooh, I like those. I didn't know about them. The named patterns, I mean
 
AH.
They are somewhat new as these things go.
Java has them also.
However, what Java does not have is “callable” subexpressions, which allow you to do anything any other recursive descent parser can do:
use 5.010;              # Perl first got regex subs in v5.10
$real__rx = qr{

    ^                   # anchor to front
    (?&real_number)     # call &real_number regex sub
    $                   # either at end or before final newline

  ##################################################
  # the rest is definition only; think of         ##
  # each named buffer as declaring a subroutine   ##
  # by that name                                  ##
  ##################################################
That allows programming your regex in a traditional top-down fashion.
A calls B and C. B calls D, E, and F. C calls G and H. Et cetera ad infinitum.
It is one of the very few things typically called by the term that genuinely merits being known as a “paradigm shift”.
If you squint, it looks rather like a BNF grammar.
 
5:00 PM
@snailboat I'm passing in a culture info. Looks like this now
Not super important, will probably only use parsing in tests :)
 
5:16 PM
Evening!
I found the following sentence: <someone> removed their assignment -- can anyone explain me what's the role of using their word here?
 
139
Q: Is there a correct gender-neutral, singular pronoun ("his" versus "her" versus "their")?

NulldeviceIs there a pronoun I can use as a gender-neutral pronoun? Each student should save his questions until the end. Each student should save her questions until the end.

It's called "singular they".
It's gender-neutral, and can be used for male or female someones.
 
@AndrewLeach I see, thank you!
 
There are many questions with the [singular-they] tag for more info.
 
Interesting information. It's the first time when I see this usage.
Thank you so much!
 
 
2 hours later…
7:37 PM
@MattЭллен if you think you can take offence, then I must tell you that you think wrong. I for one am not giving it to you.
I only have onfence left anyway. None of the off stuff.
@Cerberus but what about all the horse-porn people? I'm afraid you will need to relativilazify your statement.
 
7:53 PM
This^ reminds me of a drive-by shooting :D
 
 
1 hour later…
9:07 PM
The edited version is worthy of being converted to a comment Can you do that?
 
 
1 hour later…
10:10 PM
0
A: Questions with Can or Is

RegDwigнtExamples, examples, examples. We all can come up with any number of perfectly on-topic questions beginning with either word at a moment's notice. A single word alone does not determine whether a question is on-topic or not, be it the first word in the title or any other word. In fact, after just...

room topic changed to English Language & Usage: English As She Is Be[ing John Malkovich]spoke [Jonze] (no tags)
 

« first day (1430 days earlier)      last day (3509 days later) »