#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Average number of words per sentence


    i need to write a program that takes a passage from a user and reports the average number of words per sentence??
    help would be greatly appreciated
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,837
    Rep Power
    480
    Identifying sentences makes your task tricky. What rules denote a sentence? TeX, for instance, requires 2 spaces following a sentence ending punctuation.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo