subject + verb + direct object + object complement

ref – https://www.grammarly.com/blog/object-complement/

object complement – An object complement is a word or group of words that describes or renames the direct object of the verb in a way that is essential to complete the meaning of the sentence.

Here are a few more sentences that show the subject + verb + direct object + object complement syntax:

I (subj) find (verb) the food (direct object) [at that restaurant inconsistent in quality].

Paz’s face (subj) turned (verb) the color of a tomato(dir object) [when she realized her mistake].

I(sub) now pronounce(verb) you(direct obj) [married].

The kids (subj) all got(verb) their ears (dir obj) [pierced on the same day].

Adam’s sore ankle(subj) made(verb) his subway commute(dir obj) [an ordeal].

subject + verb + direct object + adverb

Object complements vs. predicate adverbs

The third kind of direct object sentence to look out for follows this pattern: subject + verb + direct object + adverb.

Muaz (subj) composes (verb) his photography (dir obj) beautifully (adverb).
Muaz (subj) develops (verb) his photography (dir obj) [in a darkroom] (adverb phrase).

These sentences are still about Muaz and his photography, but the presence of an adverb or adverb phrase in the predicate (beautifully), in a darkroom — tells us that now we’re talking about how and where Muaz carries out the actions that go into the creation of his photography, rather than how he defines it.

Adverbs modify verbs (beautifully — modifies –> composes)

object complements describe or name direct objects. (‘in a dark room’ — describe –> photography)

Indirect Object – subject + verb + indirect object + direct object

Object complements vs. indirect objects

Another common sentence pattern is subject + verb + indirect object + direct object. Here’s an example:

Muaz (subj) showed (verb) us (indirect obj) his photography (direct obj).

Muaz is the subject,
showed is the verb,
and photography is the direct object.

The indirect object — the recipient of the direct object by way of the action of the verb — is the pronoun us.

Now compare that to this sentence using an object complement:

Muaz (subj) considers (verb) photography (direct obj) [his main art form] (noun phrase).

Here, the subject (Muaz)
and the direct object (photography) haven’t changed,
but the verb considers
and the noun phrase his main art form, clue us in that this is about rounding out our understanding of what Muaz’s photography is rather than describing how he shares it with others.

An indirect object typically receives a direct object, while an object complement describes or names it.

Indirect Object

Indirect objects are a grammatical component in English that typically receive the direct object of a verb. In simpler terms, the indirect object indicates to whom or for whom the action of the verb is performed. It often answers the questions “to whom?” or “for whom?” regarding the direct object.

Structure:

A sentence with an indirect object generally includes a subject, a verb, a direct object, and the indirect object. The typical order is: Subject + Verb + Indirect Object + Direct Object.
Key Points:

Not always necessary: Not all verbs require an indirect object.
Positioning: The indirect object can appear between the verb and the direct object, or it can follow a preposition like “to” or “for”.

Directly following the verb:

Example: “She gave her friend a gift.”

Subject: She
Verb: gave
Indirect Object: her friend (to whom she gave the gift)
Direct Object: a gift (what she gave)

Using a preposition:

Example: “She gave a gift to her friend.”
Here, “to her friend” serves as a prepositional phrase indicating the indirect object.
The structure changes since the indirect object now follows the direct object.

Another Example: “I made my brother a sandwich.”

Subject: I
Verb: made
Indirect Object: my brother (to whom I made the sandwich)
Direct Object: a sandwich (what I made)

Using a preposition: “I made a sandwich for my brother.”

The meaning remains the same, with “for my brother” indicating to whom the sandwich was made.

More Examples

“The teacher taught the students a lesson.”

Indirect Object: the students
Direct Object: a lesson
“They sent their grandparents a postcard.”

Indirect Object: their grandparents
Direct Object: a postcard
“He told her a story.”

Indirect Object: her
Direct Object: a story

Summary

In summary, indirect objects in English sentences help clarify to whom the action is directed. While they can be positioned immediately after the verb or introduced by prepositions like “to” or “for,” understanding their role can enhance clarity in communication.

Using infinitives with Indirect objects

Infinitives can be used with indirect objects in sentences where the infinitive acts as the main verb, and the indirect object typically receives the action of the verb. Here are three examples:

I want him to help me.

In this sentence, “to help” is the infinitive. The indirect object “him” is the one receiving the action of the helping.
She asked them to join the meeting.

Here, “to join” is the infinitive. The indirect object “them” is the group being asked to join the meeting.
We told her to call us.

In this example, “to call” is the infinitive. The indirect object “her” refers to the person being told to make the call.
In each of these examples, the structure presents an infinitive that involves an indirect object receiving the action implied by the infinitive.

Gerunds + Indirect Objects

Gerunds can function as nouns in sentences and can take direct and indirect objects. When a gerund is used with an indirect object, it usually indicates to whom or for whom the action of the gerund is done.

I gave my friend a chance (to practice singing).

Here, “practicing singing” is a gerund phrase, and “my friend” is the indirect object receiving the “chance.”
She offered her brother a chance (to cook dinner).

Here, “playing games” is a gerund phrase, and “their children” is the indirect object that benefits from the “more time.”
In these examples, the gerunds are functioning as nouns that describe the action given or offered related to the indirect object.

Prepositional Phrase + Indirect objects

Sure! Here are five examples of sentences that contain indirect objects used with prepositional phrases:

She gave the book to her friend.

(Indirect object: her friend; prepositional phrase: to her friend)
The teacher explained the lesson to the students.

(Indirect object: the students; prepositional phrase: to the students)
He sent a letter to his parents.

(Indirect object: his parents; prepositional phrase: to his parents)
They offered help to the neighbors.

(Indirect object: the neighbors; prepositional phrase: to the neighbors)
I made a cake for my sister.

(Indirect object: my sister; prepositional phrase: for my sister)
In each of these examples, the indirect object is receiving the action of the verb, while the prepositional phrase provides additional information about the recipient.

Rabbit and Turtle (Alice)

你的句子
我的解释
我的修改和建议

A turtle lives in the forest. His name is Ted.

A rabbit also live in the forest.

rabbit is 3rd singular, verb must use s. live –> lives

A rabbit also lives in the forest
or
A rabbit named Judy lives in the same forest.

His name is Judy.

Judy is a female name, so we must use pronoun “Her”

Her name is Judy.

Judy thinks he run fast.

Judy thinks she runs fast.
or
Judy believes she runs really fast.
or
Judy believes she is the fastest runner in the forest.
or
Judy is confident that she is the fastest animal around.

He say to ted. Let us run and to see who is the winner.

Remember that say is a verb. He is a 3rd singular, which means our verb ‘say’ must add an ‘s’.
and ‘to’ see – the ‘to infinitive’ is used incorrectly here. Please review ‘to infinitive’.

One day, she challenges Ted to a race.
Judy shouts, “Hey Ted! Let’s race to see who is the fastest!”.

Ted agree with him.

Again, 3rd singular must add ‘s’ to the verb.
Also let’s use adverbs to put more meaning to our sentences.

Ted reluctantly agrees.

At beginning Judy run very fast.

‘At preposition’ is used for places.
If you want to say during when the race begins, you should say “In the beginning”.

In the beginning, Judy runs very fast.
or
On a sunny day, all the animals gather around the start line and the race begins. Judy zooms off into the distance.

Ted runs slow.

This look an elementary student wrote it.

Unfortunately, Ted moves step by step and is really slow.

Judy back to see Ted .

This is NOT how you use the verb ‘back’. Please review verb ‘back’.

Judy turns her head and notices that Ted is nowhere to be seen.

He is very happy and prond of himself.

Be aware of your spelling.

As a result, she is happy and proud of herself.

He thinks Ted will not catch up him .

Please review “prepositional ‘to'”
Please review “be able to” and its usage.

She thinks Ted will not be able to catch up to him.
or
There is no way Ted will catch up.

So he slept a while .

Remember, we are using present tense only. No past tense please.

So she decides to take a nap

But Ted still keeps running .

We do not need extra preposition ‘still’.

But Ted keeps running.
or
Ted persists and keeps moving.
or
Ted perseveres and inches forward.

Finally Ted catch up Judy .
Finally, Ted catches up to Judy and sees her napping by a tree.

Become the winner .
Run on sentence. Also please do not have any space(s) between the last letter and the period.

Ted crosses the finish line and wins the race.

This story tells us. We can not look down other people.

Please review period (.) It means to end the sentence.

This story teaches us that we cannot overestimate others.
or
This fable instills humbleness and perseverance.

If we insist on and make the effort .we will be successful

If we insist on hard work and persistence, we will be successful.

8 parts of speech in the English Language

There are eight parts of speech in the English language:

  • nouns
  • pronouns
  • verbs
  • adverbs
  • adjectives
  • prepositions
  • conjunctions
  • interjections

The thing about these eight parts of speech in English is that they contain smaller categories of types of words and phrases in the English language. Articles are considered a type of determiner, which is a type of adjective.

How to debug Next JS apps

ref – https://www.youtube.com/watch?v=YzTWKenM5P0

In your root directory of your project, Click on the debug button in the navigation bar.

Click create a .vscode/launch.json file

Remove what’s currently in the file.

Go to Next JS’s docs, and copy the launch.js file contents from it.

https://nextjs.org/docs/pages/building-your-application/configuring/debugging

Now, in your root directory it should looks like this:

.vscode/launch.json

Make sure you click on the debug icon and then select “debug full stack”, which is the 3rd option you put in your launch.json

Running the Project

For CLIENT SIDE, Keep in mind that your package.json stays the same:

Client side debugging

Server Side

Make sure you click the debug icon on the side bar, then click the play button:

Specifically, like this:

You can use debugger keyword for a breakpoint.

Or you can put standard breakpoints.

news 9/19

https://www.scmp.com/news/asia/south-asia/article/3233518/will-indias-modi-change-countrys-english-name-rumour-swirl-after-g20-dinner-invites-show-sanskrit

Headless WordPress with Next JS as front end

ref – https://torquemag.io/2021/05/next-js-headless-cms/

Step 1: Installing WPGraphQL to query WordPress with GraphQL

To start, we’ll need to install the WPGraphQL plugin, which will allow us to query our WordPress data with GraphQL.

You can easily install WPGraphQL by heading to the Plugins section of your WordPress admin dashboard, searching for WPGraphQL, installing the plugin, and activating it.

But once you’re ready, you should be able to visit the /graphql page in your browser for your WordPress site, where you should see a GraphQL-related error, meaning we’re ready to use GraphQL.

Step 2: Creating a new Next.js WordPress blog with Next.js WordPress Starter
If you’ve created a new Next.js website before, such as using Create Next App, this part should be pretty familiar to you!

To create our new website, head to your terminal, and run the following command:


npx create-next-app -e https://github.com/colbyfayock/next-wordpress-starter penguin-app-blog

Running this command will use the Next.js Create Next App command line tool to:

– grab a copy of the Next.js WordPress Starter template,
– clone it to a local directory
– install all of the dependencies

so that we can get quickly moving with our project.

Now, before we actually start our new project, we have to do one more thing.

Inside of your new project, we need to create a new file called .env.local, where we’ll store our WordPress API endpoint to let our code know where to pull the content from.

After creating .env.local inside of your project, add the following:

so in my case:

Summary an Essay

ref –

  • https://www.youtube.com/watch?v=bhtz7RSaKlc
  • https://docs.google.com/document/d/1YZ_R5BhplfoRsJ_Mliw3tJ4JH6P0YfTy1jK3mmxhEqs/edit

Transitions

  • First of all,
  • Next,
  • After that,
  • Then,
  • Finally

Opening Sentences

Article/book title
Writer’s name
Main idea/claim

List ideas in paragraph form, in the same order they appeared in the original article.

Never include your opinion

Just report what was originally read.

Example

Introduction

Analyze and extract get the thesis from the article:

“I have three guiding principles that anchor my life”

Therefore, we’re looking for those three guiding principles in detail.

1) Unquenchable thirst for knowledge – I consider myself a perpetual student. Because of this, I rarely get bored.

Reason – knowledge is connected to the truth.

2) Strive for excellence. Being a perfectionist and constantly trying to improve himself. He’s a perfectionist. It has made him a better physician and scientist.

He has accepted that he will never know or understand as much as he wants.

3) Serve humankind.

Details

1) – research, care of patients, public healthy policy of AID/HIV
I am committed to confronting the enormity of this global public health catastrophe and its potential for greater devastation.

Writing it

Main idea – three guiding principles that anchor my life

1) Never ending search for knowledge
2) Because knowledge is connected to truth
…etc.

In the article “A Goal of Service to Humankind”, Dr Anthony Fauci discusses the most important principles that guide his life.

The first guiding principle is a never ending search for knowledge.
(what does that mean?)
He considers himself to be a perpetual learner. As a result, he’s never bored.

The second principle is aiming for excellence. He is a perfectionist and is constantly trying to do his best, which has made him a better physician.

The last principle is his goal to serve other humans. He has spent all his professional life in service to others. In the 1980s, when AIDS became a global health health crisis, he committed himself to solving this problem, and he is still committed to ensuring that this disease does not produce even greater devastation.

Supplement

How to Write a Summary in English

Summary Checklist:
The first sentence tells the article title in quotation marks.

The first sentence uses a verb in simple present (discusses, explains, or describes)

The first sentence includes the writer/author and the main idea/claim/topic.

Example first sentence:

In the article “A Goal of Service to Humankind,” Doctor Anthony Fauci discusses the three principles that guide his life as a physician.

The summary clearly shows the main points of the article with transitions like “first of all” and “next.”

The summary tells the main points in the same order that they appeared in the article

The summary uses the student’s own words and does not copy from the article.

The ideas of the article are clear in the summary. (1-2 sentences of supporting details can be added if the idea is not clear.)

The summary does not include unnecessary details.

The summary is objective; it does not include the student’s opinion.

Optional: the summary concludes with a sentence to summarize the main points.

The grammar, vocabulary, and sentence structure are good.

Steps to Write a Summary:

Read and understand the article. You need to read more than once.

Read critically: use 2 highlighters to identify main ideas and supporting details. Draw lines to separate the article into sections. If the article is hard or long, you can also do these two optional things: make margin notes and cross out ideas that are not important.

Make a list of the important ideas in your own words. This outline is a great way to make your summary easy and to avoid copying from the article.

Use your outline to write your summary.

Remember the characteristics of a good summary:
Clearly organized with transitions
Short but not too short
Ideas are clear. A little detail can be added, but not too much.
Do not add your opinion!