Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: A few grammar checks for strings

by ww (Archbishop)
on Feb 05, 2013 at 02:12 UTC ( #1017045=note: print w/replies, xml ) Need Help??

in reply to A few grammar checks for strings

Many of the words in the so-called $prepositions list are NOT prepositions so the var name is poorly chosen; the more so since your code also faults the words' use at the end of a sentence. But (oops, I started a sentence with a preposition. Uh, no, it's a conjunction. That's still contrary to some of the so-called "best standards" but.... ah well.) let's look first at some of those words used first in a sentence:
  • About 30% of all code is garbage.
  • Beyond the hills lies the ocean.
  • Following the calves were the wolves.

The last can be faulted for not using clearer construction, but passes muster for any strict test of grammar. The second is easy enough to defend at poetic, at worst and the first is a legitmate use of the passive voice to stress the asserted percentage.

As to ending sentences with your "prepositions," try this:
  • "The bowl is 9 inches across."

Replies are listed 'Best First'.
Re^2: A few grammar checks for strings
by Lady_Aleena (Curate) on Feb 05, 2013 at 12:56 UTC

    Hello ww. I looked up "but" and found it is a conjunction and a preposition. For your last sentence, "The bowl has a nine inch radius." :)

    Have a cookie and a very nice day!
    Lady Aleena
      Caught me out! And -- for the edification of future readers -- in addition to conj. and prep., "but" can also be or 'be used as':
      • a noun "I'll take no but as an answer"
      • a pronoun "no one but has his fault..." (or, depending on your ed. of Shakespeare, "nobody but..."
      • an adverb "That's but a little tree."
      That should have been either 4.5 inch of radius or 9 inch of diameter ("nine inch *across*").

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017045]
[ambrus]: Something you can have at home and your corner print shop, without a whole printing press's worth of equipment.
[ambrus]: As for TeX, I'm not trying to discourage anyone from writing carefully beautifully typeset documents, in maths or outside. But most people aren't willing to do that, and will spend only little time about the formatting,
[ambrus]: and try to leave everything else to automated systems without checking how what they write came out format-wise, and for those people, discounting the part about journals with a specific format above,
[ambrus]: just blindly recommending to use LaTeX is a bad idea now.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-09-26 11:20 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.