procgen  Check-in [3fc4e683e3]

Overview
Comment:fix broken shit
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3fc4e683e346ac861175abad0e46a95902ccea3c5761df0e2cecba9c81d38b2a
User & Date: lexi on 2022-09-21 02:22:37
Other Links: manifest | tags
Context
2024-03-30
17:29
add vocab check-in: 42789d9192 user: lexi tags: trunk
2022-09-21
02:22
fix broken shit check-in: 3fc4e683e3 user: lexi tags: trunk
01:43
excise dumb old ##hashtag inside joke check-in: b3aefdaa1e user: lexi tags: trunk
Changes

Modified drug.scm from [a53366f464] to [c17f33fda7].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16






































17
18
19

20
21
22
23
24
25
26
..
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
...
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
...
214
215
216
217
218
219
220

221
(include "lib/lisp-macro.scm")
(include "lib/fail.scm")
(include "lib/interlace.scm")
(include "lib/bot.scm")
(include "lib/struct.scm")
(include "lib/verb.scm")

(define (forms fn vb . args)
  (list->vector (map (lambda (a) (fn vb a)) args)))

(define (flexprep vb . args)
		  (list->vector
			(append (map (lambda (x) postpositive vb x) args)
					(map (lambda (x) phrase vb x) args))))








































(define intransitive-verbs (interlace vector
	(forms phrase
		   (verb:strong "get" "got" "gotten") "up" "off" "out")

	(verb:weak "leak")
	(verb:weak "scream")
	(verb:weak "fear")
	hurt. (verb:strong! "hurt" "hurt")
	(forms postpositive
		   hurt "bad" "real bad" "like hell"
		   "something awful" "something fierce"
................................................................................
	(verb:es	"crunch")
	(verb:e	 	"scrobbl")
	(verb:e	 	"chok")
	(verb:e	 	"blaz")
	(verb:e	 	"freebas")
	(verb:e	 	"us")
	(verb:e		"vap")
	(verb:e	 	"smoke")
	(verb:e	 	"gargle")
	(verb:e	 	"guzzle")
	(verb:e		"mainlin")
	(verb:y 	"tr")
	(verb:heavy	"stab" "b")
	(verb:heavy "pop" "p")
	(verb:heavy	"zap" "p")
	(verb:heavy	"slug" "g")
	(verb:strong "drink" "drank"	"drunk")
................................................................................
	  (~ "god"		[@ sg pl])
	  (~ "goddess"	[@ sg pl/s])
	  (~ "asshole"	[@ sg pl])
	  (~ "clown"	[@ sg pl])
	  (~ "fear"		[@ mass])
	  (~ "person"	[@ sg (pl/i "people")]))))
; TODO: second-order verbs
#|
(define (verb-phrase tense noun)
  (let* ([verb (pick-rec transitive-verbs)]
		 [noun-form (pick noun)]
		 [det (pick (cdr noun-form))]
		 [bare-noun (car noun-form)])
	((verb tense) (word-append det bare-noun))))

................................................................................
		 [bare-noun (car noun-form)]
		 [verb (pick-rec (car mode))]
		 [vbd-noun ((verb (cdr mode)) bare-noun)])
	(vector (cons vbd-noun (cdr noun-form)))))

(print "in this house, we " (verb-phrase 'inf (mod-noun (pick nouns))))
(exit 0)

|#




|











>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


<
>







 







|
|
|







 







<







 







>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

57
58
59
60
61
62
63
64
...
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
...
233
234
235
236
237
238
239

240
241
242
243
244
245
246
...
251
252
253
254
255
256
257
258
259
(include "lib/lisp-macro.scm")
(include "lib/fail.scm")
(include "lib/interlace.scm")
(include "lib/bot.scm")
(include "lib/fn-struct.scm")
(include "lib/verb.scm")

(define (forms fn vb . args)
  (list->vector (map (lambda (a) (fn vb a)) args)))

(define (flexprep vb . args)
		  (list->vector
			(append (map (lambda (x) postpositive vb x) args)
					(map (lambda (x) phrase vb x) args))))


(define transitive-verbs (interlace vector
	(verb:weak "whack")
	(verb:weak "bludgeon")
	(verb:weak "brain")
	(verb:weak "debunk")
	(verb:weak "disembunk")
	(verb:strong "disprove" "disproved" "disproven")
	(verb:weak "disbar")
	(verb:weak "demolish")
	(verb:weak "defend")
	(verb:weak "defund")
	(verb:strong! "shoot" "shot")
	(verb:heavy	"zap" "p")
	(verb:weak "spank")
	(verb:es 	"ravish")
	(forms postpositive
		(verb:es "piss") "on" "at" "upon" "away")
	(verb:e "disembon")
	(verb:e "debat")
	(verb:e "demot")
	(verb:e "puzzl")
	(verb:e	 	"scrobbl")
	(verb:e	 	"chok")
	(verb:e	 	"defil")
	(verb:e	 	"freebas")
	(verb:e	 	"us")
	(verb:e		"vap")
	(verb:e	 	"smok")
	(verb:e	 	"gargl")
	(verb:e	 	"guzzl")
	(verb:e	 	"admir")
	(forms postpositive
		   (verb:weak "shout") "at" "up" "away")
	throw. (verb:strong "throw" "threw" "thrown")
	(forms postpositive
		    throw "up" "away")
))

(define intransitive-verbs (interlace vector
	(forms phrase

		   (verb:strong-heavy "get" "t" "got" "gotten") "up" "off" "out")
	(verb:weak "leak")
	(verb:weak "scream")
	(verb:weak "fear")
	hurt. (verb:strong! "hurt" "hurt")
	(forms postpositive
		   hurt "bad" "real bad" "like hell"
		   "something awful" "something fierce"
................................................................................
	(verb:es	"crunch")
	(verb:e	 	"scrobbl")
	(verb:e	 	"chok")
	(verb:e	 	"blaz")
	(verb:e	 	"freebas")
	(verb:e	 	"us")
	(verb:e		"vap")
	(verb:e	 	"smok")
	(verb:e	 	"gargl")
	(verb:e	 	"guzzl")
	(verb:e		"mainlin")
	(verb:y 	"tr")
	(verb:heavy	"stab" "b")
	(verb:heavy "pop" "p")
	(verb:heavy	"zap" "p")
	(verb:heavy	"slug" "g")
	(verb:strong "drink" "drank"	"drunk")
................................................................................
	  (~ "god"		[@ sg pl])
	  (~ "goddess"	[@ sg pl/s])
	  (~ "asshole"	[@ sg pl])
	  (~ "clown"	[@ sg pl])
	  (~ "fear"		[@ mass])
	  (~ "person"	[@ sg (pl/i "people")]))))
; TODO: second-order verbs

(define (verb-phrase tense noun)
  (let* ([verb (pick-rec transitive-verbs)]
		 [noun-form (pick noun)]
		 [det (pick (cdr noun-form))]
		 [bare-noun (car noun-form)])
	((verb tense) (word-append det bare-noun))))

................................................................................
		 [bare-noun (car noun-form)]
		 [verb (pick-rec (car mode))]
		 [vbd-noun ((verb (cdr mode)) bare-noun)])
	(vector (cons vbd-noun (cdr noun-form)))))

(print "in this house, we " (verb-phrase 'inf (mod-noun (pick nouns))))
(exit 0)
#|
|#

Modified lib/struct.scm from [9011b1b988] to [8e5e4c7533].

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;                        age: 26
;                        pw: "swordfish"))
;    (if (user? stacy) (user.name stacy))
;    (define oldstacy (user stacy age: 69))
;    (user.name oldstacy)
;    (user.age oldstacy)

(include "lisp-macro.scm")

(import (chicken pretty-print)
		(chicken keyword))

(begin-for-syntax (import (chicken keyword)))
	; i cannot believe this worked








|







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;                        age: 26
;                        pw: "swordfish"))
;    (if (user? stacy) (user.name stacy))
;    (define oldstacy (user stacy age: 69))
;    (user.name oldstacy)
;    (user.age oldstacy)

;(include "lisp-macro.scm")

(import (chicken pretty-print)
		(chicken keyword))

(begin-for-syntax (import (chicken keyword)))
	; i cannot believe this worked

Modified lib/verb.scm from [fa196ac94e] to [949f5f0581].

1
2
3
4
5
6
7
8
9
10
11
12
...
157
158
159
160
161
162
163









164
165
166
167
168
169
170
; [ʞ] verb.scm
;  ~ lexi hale <lexi@hale.su>
;  © affero general public license
;  > (load "lib/lisp-macro.scm")
;    (load "lib/struct.scm")
;    (load "lib/verb.scm")

; macros, functions, and rules  for conjugating verbs and
; generating verb phrases. this library rules was written
; specifically for english verbs and  cannot be used as a
; "drop-in"  library for  other  languages; however,  the
; structured and functions  used are sufficiently generic
................................................................................
		   ; e.g. drink → drank
		   (inf [stem]       *o*)
		   (prs [stem "s"]   *o*)
		   (ger [stem "ing"] *o*)
		   (adj [stem "ing"] *o*)
		   (pst [ipst]        *o*)
		   (ppl [ippl]        *o*))










(verb-form (irregular iinf iprs iger ipst ippl)
		   ; e.g. have → has → had
		   (inf [iinf] *o*)
		   (prs [iprs] *o*)
		   (ger [iger] *o*)
		   (adj [iger] *o*)




|







 







>
>
>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
...
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
; [ʞ] verb.scm
;  ~ lexi hale <lexi@hale.su>
;  © affero general public license
;  > (load "lib/lisp-macro.scm")
;    (load "lib/fn-struct.scm")
;    (load "lib/verb.scm")

; macros, functions, and rules  for conjugating verbs and
; generating verb phrases. this library rules was written
; specifically for english verbs and  cannot be used as a
; "drop-in"  library for  other  languages; however,  the
; structured and functions  used are sufficiently generic
................................................................................
		   ; e.g. drink → drank
		   (inf [stem]       *o*)
		   (prs [stem "s"]   *o*)
		   (ger [stem "ing"] *o*)
		   (adj [stem "ing"] *o*)
		   (pst [ipst]        *o*)
		   (ppl [ippl]        *o*))

(verb-form (strong-heavy stem final ipst ippl)
		   ; e.g. drink → drank
		   (inf [stem]       *o*)
		   (prs [stem "s"]   *o*)
		   (ger [stem final "ing"] *o*)
		   (adj [stem final "ing"] *o*)
		   (pst [ipst]        *o*)
		   (ppl [ippl]        *o*))

(verb-form (irregular iinf iprs iger ipst ippl)
		   ; e.g. have → has → had
		   (inf [iinf] *o*)
		   (prs [iprs] *o*)
		   (ger [iger] *o*)
		   (adj [iger] *o*)