the position of the pronouns within the array is now independent

This commit is contained in:
konomo 2021-11-07 19:40:41 +00:00
parent 2a4baf89ec
commit 413cdb01d5
2 changed files with 2 additions and 1 deletions

View File

@ -15,3 +15,4 @@ copy it into your gemini directory and make it executable of course
* 2021-11-06: made each sentence a list item for easier reading
* 2021-11-06: make the pronoun text a little easier to see, and remove the unnecessary '---' in that case. also change the input text to direct the user how to enter stuff.
* 2021-11-06: by exporting the sentences to a file, more can be added easily.
* 2021-11-07: the position of the pronouns is now independent

View File

@ -56,7 +56,7 @@ for i in "${pr_sub[@]}"; do
for j in "${sentences[@]}"; do
cursent="${j}"
if [[ "${cnt}" == 2 ]]; then
if [[ "${pr_sub[${cnt}]}" == "they" ]]; then
cursent="${cursent//MSHAS/have}"
else
cursent="${cursent//MSHAS/has}"