In [1]:
from xv.english import TenseManager
import random
In [2]:
ke = TenseManager(root_folder = "books_text", parent_depth = 3)
In [3]:
ke.printProblemTypes()
0. _problem_convert_simple_tense 1. _problem_convert_perfect_tense 2. _problem_convert_imperfect_tense 3. _problem_convert_continuous_tense 4. _problem_convert_passive_simple_tense 5. _problem_convert_passive_perfect_tense 6. _problem_convert_passive_imperfect_tense 7. _problem_convert_passive_continuous_tense 8. _problem_assertive_simple_tense 9. _problem_assertive_perfect_tense 10. _problem_assertive_imperfect_tense 11. _problem_assertive_continuous_tense 12. _problem_all_tenses 13. _problem_all_assertive_passive_tenses 14. _problem_all_passive_tenses
In [ ]:
In [4]:
from IPython.display import HTML
n = len(ke._problemTemplates)
max_loop = 1
for j in range(0, max_loop):
for i in range(n):
problem_type = i
display(HTML(f"<h2>problem_type: {problem_type}/{n-1} (loop {j}/{max_loop-1})</h2>"))
ke.getRandomProblem(problem_type = problem_type, verbose = True)
display(ke.printProblem())
display(HTML(f"<h6>Answer:</h6>"))
display(ke.printAnswer())
display(HTML(f"<h6>Solution:</h6>"))
display(ke.printSolution())
pass
problem_type: 0/14 (loop 0/0)
Problem Template: _problem_convert_simple_tense
Identify the tense of the following and rewrite the sentence in other tenses.
Does Sita play cricket ?
Does Sita play cricket ?
Answer:
Present: Does Sita play cricket ?
Past: Did Sita play cricket ?
Future: Will Sita play cricket ?
Past: Did Sita play cricket ?
Future: Will Sita play cricket ?
Solution:
Present: Does Sita play cricket ?
Past: Did Sita play cricket ?
Future: Will Sita play cricket ?
problem_type: 1/14 (loop 0/0)
Problem Template: _problem_convert_perfect_tense
Identify the tense of the following and rewrite the sentence in other tenses.
Had kids not written a letter ?
Had kids not written a letter ?
Answer:
Present: Have kids not written a letter?
Past: Had kids not written a letter ?
Future: Will kids not have written a letter ?
Past: Had kids not written a letter ?
Future: Will kids not have written a letter ?
Solution:
Present: Have kids not written a letter?
Past: Had kids not written a letter ?
Future: Will kids not have written a letter ?
problem_type: 2/14 (loop 0/0)
Problem Template: _problem_convert_imperfect_tense
Identify the tense of the following and rewrite the sentence in other tenses.
The boy is not writing a book .
The boy is not writing a book .
Answer:
Present: The boy is not writing a book .
Past: The boy was not writing a book .
Future: The boy will not be writing a book .
Past: The boy was not writing a book .
Future: The boy will not be writing a book .
Solution:
Present: The boy is not writing a book .
Past: The boy was not writing a book .
Future: The boy will not be writing a book .
problem_type: 3/14 (loop 0/0)
Problem Template: _problem_convert_continuous_tense
Identify the tense of the following and rewrite the sentence in other tenses.
Mary has not been playing football .
Mary has not been playing football .
Answer:
Present: Mary has not been playing football .
Past: Mary had not been playing football .
Future: Mary will not have been playing football .
Past: Mary had not been playing football .
Future: Mary will not have been playing football .
Solution:
Present: Mary has not been playing football .
Past: Mary had not been playing football .
Future: Mary will not have been playing football .
problem_type: 4/14 (loop 0/0)
Problem Template: _problem_convert_passive_simple_tense
Identify the tense of the following and rewrite the sentence in other tenses.
Drum will be played by kids .
Drum will be played by kids .
Answer:
Present: Drum is played by kids .
Past: Drum was played by kids .
Future: Drum will be played by kids .
Past: Drum was played by kids .
Future: Drum will be played by kids .
Solution:
Present: Drum is played by kids .
Past: Drum was played by kids .
Future: Drum will be played by kids .
problem_type: 5/14 (loop 0/0)
Problem Template: _problem_convert_passive_perfect_tense
Identify the tense of the following and rewrite the sentence in other tenses.
Instruments had been played by kids .
Instruments had been played by kids .
Answer:
Present: Instruments have been played by kids.
Past: Instruments had been played by kids .
Future: Instruments will have been played by kids .
Past: Instruments had been played by kids .
Future: Instruments will have been played by kids .
Solution:
Present: Instruments have been played by kids.
Past: Instruments had been played by kids .
Future: Instruments will have been played by kids .
problem_type: 6/14 (loop 0/0)
Problem Template: _problem_convert_passive_imperfect_tense
Identify the tense of the following and rewrite the sentence in other tenses.
Is an application not being written by the child ?
Is an application not being written by the child ?
Answer:
Present: Is an application not being written by the child ?
Past: Was an application not being written by the child ?
Future: Will an application not be being written by the child an application ?
Past: Was an application not being written by the child ?
Future: Will an application not be being written by the child an application ?
Solution:
Present: Is an application not being written by the child ?
Past: Was an application not being written by the child ?
Future: Will an application not be being written by the child an application ?
problem_type: 7/14 (loop 0/0)
Problem Template: _problem_convert_passive_continuous_tense
Identify the tense of the following and rewrite the sentence in other tenses.
Will badminton not have been being played by students ?
Will badminton not have been being played by students ?
Answer:
Present: Has badminton not been being played by students ?
Past: Had badminton not been being played by students ?
Future: Will badminton not have been being played by students ?
Past: Had badminton not been being played by students ?
Future: Will badminton not have been being played by students ?
Solution:
Present: Has badminton not been being played by students ?
Past: Had badminton not been being played by students ?
Future: Will badminton not have been being played by students ?
problem_type: 8/14 (loop 0/0)
Problem Template: _problem_assertive_simple_tense
Write examples the assertive, simple, active sentences.
Answer:
Examples the assertive, simple, active sentences:
present_simple:
Girls play saxophone .
past_simple:
Girls played saxophone .
future_simple:
Girls will play saxophone .
present_simple:
Girls play saxophone .
past_simple:
Girls played saxophone .
future_simple:
Girls will play saxophone .
Solution:
Examples the assertive, simple, active sentences:
present_simple:
Girls play saxophone .
past_simple:
Girls played saxophone .
future_simple:
Girls will play saxophone .
problem_type: 9/14 (loop 0/0)
Problem Template: _problem_assertive_perfect_tense
Write examples the assertive, perfect, active sentences.
Answer:
Examples the assertive, perfect, active sentences:
present_perfect:
Mary has played drums.
past_perfect:
Mary had played drums .
future_perfect:
Mary will have played drums .
present_perfect:
Mary has played drums.
past_perfect:
Mary had played drums .
future_perfect:
Mary will have played drums .
Solution:
Examples the assertive, perfect, active sentences:
present_perfect:
Mary has played drums.
past_perfect:
Mary had played drums .
future_perfect:
Mary will have played drums .
problem_type: 10/14 (loop 0/0)
Problem Template: _problem_assertive_imperfect_tense
Write examples the assertive, imperfect, active sentences.
Answer:
Examples the assertive, imperfect, active sentences:
present_imperfect:
Children are playing football .
past_imperfect:
Children were playing football .
future_imperfect:
Children will be playing football .
present_imperfect:
Children are playing football .
past_imperfect:
Children were playing football .
future_imperfect:
Children will be playing football .
Solution:
Examples the assertive, imperfect, active sentences:
present_imperfect:
Children are playing football .
past_imperfect:
Children were playing football .
future_imperfect:
Children will be playing football .
problem_type: 11/14 (loop 0/0)
Problem Template: _problem_assertive_continuous_tense
Write examples the assertive, continuous, active sentences.
Answer:
Examples the assertive, continuous, active sentences:
present_perfect_continuous:
Hamid has been playing piano .
past_perfect_continuous:
Hamid had been playing piano .
future_perfect_continuous:
Hamid will have been playing piano .
present_perfect_continuous:
Hamid has been playing piano .
past_perfect_continuous:
Hamid had been playing piano .
future_perfect_continuous:
Hamid will have been playing piano .
Solution:
Examples the assertive, continuous, active sentences:
present_perfect_continuous:
Hamid has been playing piano .
past_perfect_continuous:
Hamid had been playing piano .
future_perfect_continuous:
Hamid will have been playing piano .
problem_type: 12/14 (loop 0/0)
Problem Template: _problem_all_tenses
Write examples the active sentences.
Answer:
Examples the active sentences:
present_simple:
Does the boy play water sports ?
present_imperfect:
Is the boy playing water sports ?
present_perfect:
Has the boy played water sports?
present_perfect_continuous:
Has the boy been playing water sports ?
past_simple:
Did the boy play water sports ?
past_imperfect:
Was the boy playing water sports ?
past_perfect:
Had the boy played water sports ?
past_perfect_continuous:
Had the boy been playing water sports ?
future_simple:
Will the boy play water sports ?
future_imperfect:
Will the boy be playing water sports ?
future_perfect:
Will the boy have played water sports ?
future_perfect_continuous:
Will the boy have been playing water sports ?
present_simple:
Does the boy play water sports ?
present_imperfect:
Is the boy playing water sports ?
present_perfect:
Has the boy played water sports?
present_perfect_continuous:
Has the boy been playing water sports ?
past_simple:
Did the boy play water sports ?
past_imperfect:
Was the boy playing water sports ?
past_perfect:
Had the boy played water sports ?
past_perfect_continuous:
Had the boy been playing water sports ?
future_simple:
Will the boy play water sports ?
future_imperfect:
Will the boy be playing water sports ?
future_perfect:
Will the boy have played water sports ?
future_perfect_continuous:
Will the boy have been playing water sports ?
Solution:
Examples the active sentences:
present_simple:
Does the boy play water sports ?
present_imperfect:
Is the boy playing water sports ?
present_perfect:
Has the boy played water sports?
present_perfect_continuous:
Has the boy been playing water sports ?
past_simple:
Did the boy play water sports ?
past_imperfect:
Was the boy playing water sports ?
past_perfect:
Had the boy played water sports ?
past_perfect_continuous:
Had the boy been playing water sports ?
future_simple:
Will the boy play water sports ?
future_imperfect:
Will the boy be playing water sports ?
future_perfect:
Will the boy have played water sports ?
future_perfect_continuous:
Will the boy have been playing water sports ?
problem_type: 13/14 (loop 0/0)
Problem Template: _problem_all_assertive_passive_tenses
Write examples the assertive, passive sentences.
Answer:
Examples the assertive, passive sentences:
present_simple:
Drums are played by boys .
present_imperfect:
Drums are being played by boys .
present_perfect:
Drums have been played by boys.
present_perfect_continuous:
Drums have been being played by boys .
past_simple:
Drums were played by boys .
past_imperfect:
Drums were being played by boys .
past_perfect:
Drums had been played by boys .
past_perfect_continuous:
Drums had been being played by boys .
future_simple:
Drums will be played by boys .
future_imperfect:
Drums will be being played by boys drums .
future_perfect:
Drums will have been played by boys .
future_perfect_continuous:
Drums will have been being played by boys .
present_simple:
Drums are played by boys .
present_imperfect:
Drums are being played by boys .
present_perfect:
Drums have been played by boys.
present_perfect_continuous:
Drums have been being played by boys .
past_simple:
Drums were played by boys .
past_imperfect:
Drums were being played by boys .
past_perfect:
Drums had been played by boys .
past_perfect_continuous:
Drums had been being played by boys .
future_simple:
Drums will be played by boys .
future_imperfect:
Drums will be being played by boys drums .
future_perfect:
Drums will have been played by boys .
future_perfect_continuous:
Drums will have been being played by boys .
Solution:
Examples the assertive, passive sentences:
present_simple:
Drums are played by boys .
present_imperfect:
Drums are being played by boys .
present_perfect:
Drums have been played by boys.
present_perfect_continuous:
Drums have been being played by boys .
past_simple:
Drums were played by boys .
past_imperfect:
Drums were being played by boys .
past_perfect:
Drums had been played by boys .
past_perfect_continuous:
Drums had been being played by boys .
future_simple:
Drums will be played by boys .
future_imperfect:
Drums will be being played by boys drums .
future_perfect:
Drums will have been played by boys .
future_perfect_continuous:
Drums will have been being played by boys .
problem_type: 14/14 (loop 0/0)
Problem Template: _problem_all_passive_tenses
Write examples the passive sentences.
Answer:
Examples the passive sentences:
present_simple:
Letters are written by the child .
present_imperfect:
Letters are being written by the child .
present_perfect:
Letters have been written by the child.
present_perfect_continuous:
Letters have been being written by the child .
past_simple:
Letters were written by the child .
past_imperfect:
Letters were being written by the child .
past_perfect:
Letters had been written by the child .
past_perfect_continuous:
Letters had been being written by the child .
future_simple:
Letters will be written by the child .
future_imperfect:
Letters will be being written by the child letters .
future_perfect:
Letters will have been written by the child .
future_perfect_continuous:
Letters will have been being written by the child .
present_simple:
Letters are written by the child .
present_imperfect:
Letters are being written by the child .
present_perfect:
Letters have been written by the child.
present_perfect_continuous:
Letters have been being written by the child .
past_simple:
Letters were written by the child .
past_imperfect:
Letters were being written by the child .
past_perfect:
Letters had been written by the child .
past_perfect_continuous:
Letters had been being written by the child .
future_simple:
Letters will be written by the child .
future_imperfect:
Letters will be being written by the child letters .
future_perfect:
Letters will have been written by the child .
future_perfect_continuous:
Letters will have been being written by the child .
Solution:
Examples the passive sentences:
present_simple:
Letters are written by the child .
present_imperfect:
Letters are being written by the child .
present_perfect:
Letters have been written by the child.
present_perfect_continuous:
Letters have been being written by the child .
past_simple:
Letters were written by the child .
past_imperfect:
Letters were being written by the child .
past_perfect:
Letters had been written by the child .
past_perfect_continuous:
Letters had been being written by the child .
future_simple:
Letters will be written by the child .
future_imperfect:
Letters will be being written by the child letters .
future_perfect:
Letters will have been written by the child .
future_perfect_continuous:
Letters will have been being written by the child .