The lexical grammars of Python and Haskell are not regular. What does that mean, and why aren’t they?
πŸ‘︎ 160
πŸ’¬︎
πŸ‘€︎ u/mu9eeb
πŸ“…︎ Dec 27 2020
🚨︎ report
What is meant by 'have no specific lexical function' in the definition of grammatical particles?
πŸ‘︎ 15
πŸ’¬︎
πŸ‘€︎ u/No_Asparagus9320
πŸ“…︎ Jan 11 2022
🚨︎ report
On the behaviors of "mapping functions" under lexical and dynamic scoping

On p. 18 of his book On Lisp, Paul Graham writes:

...suppose we want to write a function which takes a list of numbers and adds a 
certain amount to each one.  The function list+

(defun list+ (lst n)
  (mapcar #'(lambda (x) (+ x n))
          lst))

will do what we want:

> (list+ '(1 2 3) 10)
(11 12 13)

If we look closely at the function which is passed to mapcar within list+, it's 
actually a closure.  The instance of n is free, and its binding comes from the 
surrounding environment.  Under lexical scope, every such use of a mapping 
function causes the creation of a closure.[1]

[1] Under dynamic scope the same idiom will work for a different reasonβ€”so long 
as neither of mapcar's parameter is called x.

The last phrase ("so long as neither of mapcar's parameter is called x") makes no sense to me. It seems like a vacuous condition (akin to "as long as 1 is not equal to 2"); how could "[either] of mapcar's parameters" in this case be "called x"? The names of these parameters are fixed by the definition of list+. And even if one were to redefine list+ (perversely enough) as

(defun list+ (x n)
  (mapcar #'(lambda (x) (+ x n))
          x))

...it would still behave as it did before.

If someone were kind enough to make sense of Graham's comment for me, I'd be most grateful.

EDIT: I just learned of an Errata page for On Lisp, which includes the following: > p. 18. In the footnote, x should be n, ...

!🀦!🀦!🀦!

πŸ‘︎ 15
πŸ’¬︎
πŸ‘€︎ u/knnjns
πŸ“…︎ Nov 26 2021
🚨︎ report
TIL there is a language called a β€œEsperanto” which was designed in an attempt to create a neutral/universal language. It has a completely regular grammar and allows the creation of a large quantity of words by combining lexical roots and about forty affixes lernu.net/en/esperanto
πŸ‘︎ 126
πŸ’¬︎
πŸ‘€︎ u/One-Comma-Club
πŸ“…︎ May 25 2019
🚨︎ report
How to analyse noun phrases by using systemic functional grammar or transitivity

I'm writing my BA thesis. I want to analyze some titles on video platform, but it involved many noun phrases and interrogative sentences, which puzzles me a lot. Many books about SFL are using declarative sentences as examples.

I don't know whether it belongs to beginner's questions because i just read some books of Haliday's theory and step into this new area for four weeks QAQ. i would appreciate if you can provide some papers, books or videos concerned.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/vergessenfluss
πŸ“…︎ Nov 19 2021
🚨︎ report
A video where Adam talks about lexical grammar

I have a strong memory of Adam spending a part of one of his videos talking about lexical grammar but I can't but my finger on which video it is and honestly don't have the patience to try and brute force find it. Would any of you happen to know which video it is he mentions it?

πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/Benhki
πŸ“…︎ Feb 25 2020
🚨︎ report
[EDITED THE LEXIC, GRAMMAR AND CONJUGAISON ISSUES] Bloodborne's Novel chap 1 and 2 This is still a beta and might undergo major changes as it already did Next chaps, being the actual real deal will be thrice as long, just need motivation Feel free to give critics so i improve my work reddit.com/gallery/r9ftpk
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/AdFearless3325
πŸ“…︎ Dec 05 2021
🚨︎ report
Lexical functional programming β€” jargon and naming convention blog.daftcode.pl/lexical-…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/coun7zero
πŸ“…︎ May 22 2020
🚨︎ report
Are there languages where a phonetic feature is only used for grammar and never for lexical distinction?

An example of what I mean would be something like a language that marks tense with tone or plurality with voicedness but never distinguishes words by contrasting those phonetic features.

πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/Earth_Lad
πŸ“…︎ Mar 06 2018
🚨︎ report
study with me: grading first and then my Functional Grammar essay reddit.com/rpan/r/TheYouS…
πŸ‘︎ 35
πŸ’¬︎
πŸ‘€︎ u/violethenley
πŸ“…︎ May 02 2021
🚨︎ report
Is this a closure? The second function is within the first function and the variable used in the second function has a different lexical scope.

function droids(arr) {

let result = ''; --- this variable is in the scope of the first function, but not in the scope of the second function, so it has a different lexical scope, correct?

function iterate(item) {

if(item === 'Droids') {

  result = "Found Droids!"

} else {

  result = "These are not the droids you're looking for."

}

}

arr.forEach(iterate) --- calling the second function that exists within the lexical scope of the first function to loop through a globally scoped array passed as an argument to the first function

return result;

}

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/jerseyse410
πŸ“…︎ Oct 10 2021
🚨︎ report
study with me: Functional Grammar final essay reddit.com/rpan/r/TheYouS…
πŸ‘︎ 20
πŸ’¬︎
πŸ‘€︎ u/violethenley
πŸ“…︎ May 03 2021
🚨︎ report
Haku: toy functional language with grammar, syntax and vocabulary inspired by Japanese codeberg.org/wimvanderbau…
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/kinow
πŸ“…︎ Sep 23 2021
🚨︎ report
Systemic Functional Grammar - Experiential Processes

Hello, everyone. I'm looking for a bit of help.

In the sentence "The government has declined to say how much has been spent on the new airport" is the process material, mental, or verbal?

My current thinking is that 'declined' is the process of this clause and 'to say...' is the start of embedded clause. If that is the case, is 'declined' a material, mental, or verbal process? I don't think it fits neatly into any of them.

If, however, 'declined to say' is a complex verb group, it would appear as though it's a verbal process and the remainder of the sentence (how much had been spent on the new airport) would be the verbiage.

I have been doing quite a bit of reading on the topic, but if you have any references that you feel might be of benefit, please do let me know.

Thank you.

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/RelentlessFalling
πŸ“…︎ Aug 23 2021
🚨︎ report
Functional trade-off between lexical tone and intonation replicatedtypo.com/functi…
πŸ‘︎ 23
πŸ’¬︎
πŸ‘€︎ u/wintz
πŸ“…︎ Aug 19 2014
🚨︎ report
JavaScript is different in that it use the function as the lexical scope rather then the angel brackets. This [...] helps you think of the code in three dimensions where time is one dimension, making it easier to understand code that runs asynchronously news.ycombinator.com/item…
πŸ‘︎ 72
πŸ’¬︎
πŸ‘€︎ u/tomwhoiscontrary
πŸ“…︎ May 15 2021
🚨︎ report
study with me: grading paper, functional grammar notes, pre reading,... reddit.com/rpan/r/TheYouS…
πŸ‘︎ 26
πŸ’¬︎
πŸ‘€︎ u/violethenley
πŸ“…︎ Mar 09 2021
🚨︎ report
I found some grammar-checking software at a thrift store. It's surprisingly functional even compared to things like Grammarly today! Archive.org link for the disk images in the comments. :) youtube.com/watch?v=4qB2D…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/TheMajorTechie
πŸ“…︎ Aug 09 2021
🚨︎ report
Please, specify what grammar or lexical mistakes the Russians make usually.
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Alex16698
πŸ“…︎ Nov 22 2017
🚨︎ report
study with me: functional grammar reddit.com/rpan/r/TheYouS…
πŸ‘︎ 17
πŸ’¬︎
πŸ‘€︎ u/violethenley
πŸ“…︎ Jan 23 2021
🚨︎ report
Study with me: functional grammar (2) reddit.com/rpan/r/TheYouS…
πŸ‘︎ 21
πŸ’¬︎
πŸ‘€︎ u/violethenley
πŸ“…︎ Jan 11 2021
🚨︎ report
study with me: functional grammar (a little bit) reddit.com/rpan/r/TheYouS…
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/violethenley
πŸ“…︎ Feb 28 2021
🚨︎ report
Study with me: functional grammar (1) reddit.com/rpan/r/TheYouS…
πŸ‘︎ 14
πŸ’¬︎
πŸ‘€︎ u/violethenley
πŸ“…︎ Jan 11 2021
🚨︎ report
Entrenchment of lexical + functional morpheme (/syllabeme) combinations in isolating languages?

Broadly speaking, I'm interested in entrenchment of root + inflection combinations. But I'd also like to know what people may or may not have said about entrenchment of lexical + functional morphemic / syllabemic combinations in languages like Vietnamese, Mandarin, etc.

For example, the Vietnamese string bαΊ‘n Δ‘Γ£ biαΊΏt[?], roughly "you + PST + know", occurs very often, with various appropriate translations: did you know, you knew, you had known, etc. I would be particularly interested in whether combinations of the Δ‘Γ£ biαΊΏt type might require higher frequency thresholds before entrenchment occurs than equivalent constructions in moderately and highly inflecting languages, due to the higher exponential workload they bear. (Since all this would ultimately be relevant to the words-and-rules debate, we would probably be more interested in mid- or low-frequency roots / inflected forms than high-frequency roots / inflected forms like know/knew, savoir/savait, etc.) I can expand if necessary, but hopefully those in the know have seen enough to weigh in. Thanks!

πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/legatrix
πŸ“…︎ Sep 21 2014
🚨︎ report
Hi, Reddit ELA Teachers! Here's our new lesson for our free, OER series on grammar. The video explains the subject-predicate relationship, offers several useful methods for identifying the subject, introduces a functional definition for the subject, and provides numerous examples of robots dancing. youtube.com/watch?v=Kp65w…
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/OSU-SWLF
πŸ“…︎ Jun 01 2021
🚨︎ report
Hi, Reddit Teachers! Below is a new video in our free series on grammar. It offers a functional definition of the predicate, explains its catch-all function, leads viewers through variations in its form, and highlights the important role of the essential predicating verb. youtube.com/watch?v=MniZq…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/OSU-SWLF
πŸ“…︎ Jun 07 2021
🚨︎ report
Functional Grammar Summary reddit.com/rpan/r/TheYouS…
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/violethenley
πŸ“…︎ Jan 04 2021
🚨︎ report
Perl, functional programming, and lexical closures danpeng.livejournal.com/1…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/brennen
πŸ“…︎ May 23 2007
🚨︎ report
lexical-gustatory synesthesia

i am so excited that there is name for something i experience! ever since i can remember, every word i say and sometimes hear has a very distinct taste/texture in my mouth and in parts of my tongue. i avoid saying certain words because of the overwhelming taste or texture that they produce. i didn’t realize that lexical-gustatory synesthesia is so rare, and as a kid i thought everyone else could taste what they said too. i’m just really excited to know i’m not crazy!

πŸ‘︎ 34
πŸ’¬︎
πŸ‘€︎ u/viimaraj
πŸ“…︎ Jan 25 2022
🚨︎ report
Transitivity in Systemic Functional Grammar?

What is Transitivity? with regards to Systemic Functional Grammar.

Also, if possible.. could you give some examples in the English language.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Shoddy-Can8316
πŸ“…︎ Dec 12 2020
🚨︎ report
Pitch Accent = Lexical Stress, and other misconceptions akorbi.com/akorbi-explain…
πŸ‘︎ 144
πŸ’¬︎
πŸ‘€︎ u/alien-linguist
πŸ“…︎ Dec 25 2021
🚨︎ report
Could Universal Grammar be based on functionality?

I'm reading The Language Instinct by Steven Pinker. He writes:

>The particular ways that languages do form questions [moving the auxiliary to the front of the sentence] are arbitrary, species-wide convetions.

Could it not be arbitrary, but a common functionality? For instance (but not limited to) the listener benefiting from knowing with the first word of a sentence whether it is a question or a statement.

>The universal plan underlying languages, with auxiliaries and inversion rules, nouns and verbs, subjects and objects, phrases and clauses, case and agreement, and so on, seems to suggest a commonality in the brains of speakers ...

Or a commonality in function...?

>...because many other plans would have been just as useful.

Are they really?

>It is as if isolated inventors miraculously came up with identical standards for typewriter keyboards or Morse code or traffic signals.

I am pretty sure certain tools have been invented by different cultures seperatedly. See Multiple Discovery.

I'm quite convinced language, tool use and plenty of other things are innate to humans, or human nature in a sense. I am however not convinced, there has to be a "mental organ, a neural system, and a computational module" for language to explain the finding above...

Not to start a discussion whether Universal Grammar Theory is correct (even though I'm still happy about any input!). My main point is: Does my criticism make sense? Couldn't there be a common functionality in explaining overlapping grammar?

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/AwaySituation
πŸ“…︎ Jan 09 2022
🚨︎ report
Does enabling lexical binding in a file make all the setq assignments valid only when the functions in it are running?

Some of the functions I'm developing have so many setqs in them and I wonder whether it is proper.

I find having to structure the code to ensure all variables are assigned under let statements rather awkward so I simply use setq's and try not to use those variables in other programs.

Will setting -*- lexical binding : t -*- make the setq apply only within the file?

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/vfclists
πŸ“…︎ Aug 28 2020
🚨︎ report
I have lexical gustatory synesthesia, meaning I can taste words. AMA
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/kingofcherry
πŸ“…︎ Dec 25 2021
🚨︎ report
Context of Situation - Systemic Functional Grammar - Halliday

Context of Situation is about Tenor, Field and Mode.

Then what is context of culture about?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Shoddy-Can8316
πŸ“…︎ Dec 12 2020
🚨︎ report
I have been reading about arrow functions and lexical this, but my mental model was invalidated with the following example

I thought I was starting to understand arrow functions and the this keyword. I keep coming back to the this keyword in JS, and it's very demotivation.

Anyways, here is what I wrote to test myself:

const parent = {
  name: "Dad",
  child: {
    name: "Daughter",
    getName: () => this.name,
  },
};

parent.child.getName() // undefined

I could have sworn it would've printed 'Dad'. I thought the arrow function looked in the lexical scope and would've found name on the parent object and logged it to the console.

Where is my mental model incorrect? I'm thinking this is out of scope (pun not intended...) of the arrow function this rules. It feels deeper than that.

Thank you so much. I've been staring at this for what feels like forever, and I would really appreciate some clarity as to what is going on.

πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/gotta-lot
πŸ“…︎ Apr 18 2020
🚨︎ report
A question on Rob Pike's talk Lexical Scanning in Go

I was watching this talk. In this he explains importance of running the lexer during initialisation. There is a slide at 34:25 saying "Can't run a goroutine to completion during initialisation"

I watched this part multiple times, but still I am not able to understand. Can anyone explain?

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/django_kid
πŸ“…︎ Jan 20 2022
🚨︎ report
The lexical grammars of Python and Haskell are not regular. What does that mean, and why aren’t they?
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/mu9eeb
πŸ“…︎ Dec 27 2020
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.