human
detect language to english.
assistant
Here is a Python function to detect language to english

text = "This is a test"

# Calling the function
print((detect_language(text)))

#Example Output
# Not detected

#Remember to inspect code for bugs.