Uppercase/lowercase treatment of example sentences/phrases

Hello all.

I found that the example sentences from OED shows an interesting pattern: full sentences start with a lower case and they do not finish with a period/question mark/exclamation mark.

For example, check out this entry: https://en.oxforddictionaries.com/definition/us/interest.
The first example sentence is:
"‘he developed an interest in art’".

However, if you click on 'Show more example sentences', then the additional example sentences show just fine with the right capitalization and punctuation.

I am wondering what I could do to get the example sentence in the right format.

Comments

  • SimoneSimone Member, Administrator, Moderator admin

    Hi Andrew,
    Hum, that is interesting - let me ask my colleagues, they should be able to comment on this for you.

  • andrewbkimandrewbkim Member

    Thanks Simone. I am printing out example sentences to users and they noted this doesn't look too pretty in the printed file.

  • AmosDuveenAmosDuveen Member, Administrator, Moderator admin

    Hi @Andrewbkim,

    The stated example and the further example sentences actually derive from two different datasets (both available via the API) and it looks like they have slightly different editorial approaches. Checking through a few different entries, it looks like the dictionary examples all negate the initial capital and final full stop (please correct me if I'm wrong in this point) so my suggestion would be to code for it as it appears to be a consistent editorial approach.

  • andrewbkimandrewbkim Member

    Hi @AmosDuveen,

    Thanks for taking the time answering my question.

    Yes, you saw my point that capitalization and punctuation, and I wish I could code so that I could nullify your 'editorial approach'. The issue is this if I am to take that course: (1) I am not sure how to detect whether a given string of example sentence qualifies as a full sentence or it is just a phrase, in which case I would not want to capitalize the first character or add a question mark/period at the end. (2) It may be the case that the example string is just a phrase and ends with an acronym that ends with a period, e.g., 4 p.m. Now you see how complicated it gets if I am to code for this. Then I thought Oxford might want to have a look at this topic.

    So, I would really appreciate it if Oxford Dictionaries Team could do one of the following: (1) provide a way to use an alternative 'editorial approach', (2) provide a code that will reverse the 'editorial approach'. Otherwise I would be forced to rethink how to use example sentences from OED. However, I guess such rules may not cover all of the cases and correcting the source text may produce the best result.

    So, should I make TWO api calls - one for definition and one for an example sentence of the more conventional editorial approach? Please advise.

  • AmosDuveenAmosDuveen Member, Administrator, Moderator admin

    Hi @andrewbkim,

    Sorry to add confusion, but are you referring to example sentences in the Oxford English Dictionary (OED, the 24-volume historical record of the English language; online at http://www.oed.com/; API docs at https://developer.oxforddictionaries.com/our-data) or the Oxford Dictionary of English (ODE, the single volume dictionary of current English usage; online at https://en.oxforddictionaries.com/; API docs at https://developer.oxforddictionaries.com/documentation#/)?

  • andrewbkimandrewbkim Member

    Hi @AmosDuveen,

    I am referring to https://en.oxforddictionaries.com/. With the query result I get from the API calls, capitalization is an issue.

  • AmosDuveenAmosDuveen Member, Administrator, Moderator admin

    Hi @andrewbkim,

    If you're going to have difficulty with the different editorial approaches which result from the different purpose and histories of the two datasets, then I would suggest you drop the example(s) from the dictionary data altogether and just present the example sentences. As you noted, this would indeed require two calls, as indeed would any request requiring data from two different endpoints.

Sign In or Register to comment.