user
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Create a program that can detect if a text is written in English.

### Input:
This text is written in English.

### Response:
assistant
The program should detect that the text is written in English by analyzing the words used and the syntax of the sentence. The program should be trained on a corpus of English text and be able to recognize and identify English sentences.