Browse Source

go-reloaded apostrophe issue

content-update
OGordoo 3 years ago
parent
commit
0189d70fd6
  1. 8
      subjects/go-reloaded/README.md
  2. 4
      subjects/go-reloaded/audit/README.md

8
subjects/go-reloaded/README.md

@ -27,10 +27,10 @@ The tool you are about to build will receive as arguments the name of a file con
- For `(low)`, `(up)`, `(cap)` if a number appears next to it, like so: `(low, <number>)` it turns the previously specified number of words in lowercase, uppercase or capitalized accordingly. (Ex: "This is so exciting (up, 2)" -> "This is SO EXCITING")
- Every instance of the punctuations `.`, `,`, `!`, `?`, `:` and `;` should be close to the previous word and with space apart from the next one. (Ex: "I was sitting over there ,and then BAMM !!" -> "I was sitting over there, and then BAMM!!").
- Except if there are groups of punctuation like: '...' or '!?'. In this case the program should format the text as in the following example: "I was thinking ... You were right" -> "I was thinking... You were right".
- The punctuation mark `'` should not have spaces if there are letters right next to it, on both sides. Otherwise, the mark should be placed to the right of the next word and the following `'` mark should be placed to its left. (Ex: "I'm exactly how they describe me: ' awesome '" -> "I'm exactly how they describe me: 'awesome'")
- If there are more than one word between the two `'`, the program should place the marks next to the corresponding words (Ex: "As Elton John said: ' I am the most well-known homosexual in the world '" -> "As Elton John said: 'I am the most well-known homosexual in the world'")
- Every instance of `a` should be turned into `an` if the next word begins with a vowel or an 'h'. (Ex: "There it was. A amazing rock!" -> "There it was. An amazing rock!").
- Except if there are groups of punctuation like: `...` or `!?`. In this case the program should format the text as in the following example: "I was thinking ... You were right" -> "I was thinking... You were right".
- The punctuation marks `‘` and `’` should be placed to the right and left of the word in the middle of them, respectively. (Ex: "I am exactly how they describe me: ‘ awesome ’" -> "I am exactly how they describe me: ‘awesome’")
- If there are more than one word between the `‘’` marks, the program should place the marks next to the corresponding words (Ex: "As Elton John said: ‘ I am the most well-known homosexual in the world ’" -> "As Elton John said: ‘I am the most well-known homosexual in the world’")
- Every instance of `a` should be turned into `an` if the next word begins with a vowel or an `h`. (Ex: "There it was. A amazing rock!" -> "There it was. An amazing rock!").
### Allowed packages

4
subjects/go-reloaded/audit/README.md

@ -14,6 +14,6 @@
###### Is the text present in `result.txt` equal to: "Don't be sad, because sad backwards is das. And das not good"
##### In a file called `sample.txt` place the following text (without the double quotes): "harold wilson (cap, 2) : ' I am a optimist ,but a optimist who carries a raincoat . '". Now run the student program with the arguments: `sample.txt result.txt`.
##### In a file called `sample.txt` place the following text (without the double quotes): "harold wilson (cap, 2) : ‘ I am a optimist ,but a optimist who carries a raincoat . ’". Now run the student program with the arguments: `sample.txt result.txt`.
###### Is the text present in `result.txt` equal to: "Harold Wilson: 'I am an optimist, but an optimist who carries a raincoat.'"
###### Is the text present in `result.txt` equal to: "Harold Wilson: ‘I am an optimist, but an optimist who carries a raincoat.’"

Loading…
Cancel
Save