export pronouns to csv file
This commit is contained in:
parent
377868d774
commit
d1de56aed6
|
@ -8,10 +8,13 @@ made after seeing [https://asteine8.github.io/projects/pronoun-dressing-room/dre
|
|||
copy it into your gemini directory and make it executable of course
|
||||
|
||||
## TODO
|
||||
* randomly collect sentences from files [2022-03-14T16:45:30Z]
|
||||
* randomly collect sentences from files [opened: 2022-03-14T16:45:30Z]
|
||||
* [ ] add a lot of sentences
|
||||
* [ ] make the program select a random selection (like 3 or 4 of them)
|
||||
|
||||
* more flexibility [2022-05-30T14:14:00Z; closed: 2022-05-31T13:13:30Z]
|
||||
* [X] add another file for pronouns instead of having them hardcoded.
|
||||
|
||||
## Changelog
|
||||
* 2021-10-18: thrown together in an hour
|
||||
* 2021-10-19: thrown through shellcheck
|
||||
|
@ -22,3 +25,4 @@ copy it into your gemini directory and make it executable of course
|
|||
* 2021-11-07: the position of the pronouns within the array is now independent
|
||||
* 2021-11-07: fix compatibility with weird clients that don't encode ; as %3B
|
||||
* 2022-03-14: add new sentences
|
||||
* 2022-05-31: export pronouns to csv file
|
||||
|
|
13
index.gmi
13
index.gmi
|
@ -21,11 +21,11 @@ printf "# Pronoun Dressing Room for %s" "$name"
|
|||
while read sentence; do
|
||||
sentences+=("${sentence}"); done < sentences
|
||||
|
||||
pr_sub=("he" "she" "they" "xe")
|
||||
pr_obj=("him" "her" "them" "xem")
|
||||
pr_psd=("his" "her" "their" "xyr")
|
||||
pr_pos=("his" "hers" "theirs" "xyrs")
|
||||
pr_ref=("himself" "herself" "themselves" "xemself")
|
||||
pr_sub=( $(tail -n +2 pronouns.csv | cut -d ',' -f1) )
|
||||
pr_obj=( $(tail -n +2 pronouns.csv | cut -d ',' -f2) )
|
||||
pr_psd=( $(tail -n +2 pronouns.csv | cut -d ',' -f3) )
|
||||
pr_pos=( $(tail -n +2 pronouns.csv | cut -d ',' -f4) )
|
||||
pr_ref=( $(tail -n +2 pronouns.csv | cut -d ',' -f5) )
|
||||
|
||||
cnt=0
|
||||
|
||||
|
@ -47,7 +47,6 @@ for i in "${pr_sub[@]}"; do
|
|||
if [[ "${setnumber}" != 999 ]]; then
|
||||
if [[ "${setnumber}" != "${cnt}" ]]; then
|
||||
((cnt++))
|
||||
#printf "%s:\n---\n" "$i"
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
@ -55,7 +54,7 @@ for i in "${pr_sub[@]}"; do
|
|||
if [[ "${setnumber}" == 999 ]]; then
|
||||
printf "%s:\n---\n" "$i"
|
||||
fi
|
||||
|
||||
|
||||
for j in "${sentences[@]}"; do
|
||||
cursent="${j}"
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
Subjective,Objective,PosessiveDeterminative,Posessive,Reflexive
|
||||
he,him,his,his,himself
|
||||
she,her,her,hers,herself
|
||||
they,them,their,theirs,themselves
|
||||
xe,xem,xyr,xyrs,xemself
|
|
|
@ -6,3 +6,4 @@ NAME did so well, SUBJECTIVE MSHAS every reason to be proud of REFLEXIVE.
|
|||
SUBJECTIVE is really good at picking REFLEXIVE up after struggling.
|
||||
The way NAME spoke at the meeting was really great, SUBJECTIVE seemed so confident.
|
||||
SUBJECTIVE did really well this semester.
|
||||
I owe OBJECTIVE one for how SUBJECTIVE stood up to me.
|
||||
|
|
Loading…
Reference in New Issue