import textwrap
def count_words(text):
return len(text.split())
def check_sentences(text):
sentences = [s.strip() for s in text.replace('!', '.').replace('?', '.').split('.') if s.strip()]
return [len(s.split()) for s in sentences]
def validate_paragraph(p, index):
wc = count_words(p)
sentences = check_sentences(p)
short_sentences = [s for s in sentences if s < 22]
print(f"Para {index+1}: {wc} words. Sentence lengths: {sentences}")
forbidden = ["overall", "altogether", "vivid", "vital", "pivot", "pivotal", "critical", "context", "contextual", "contentualising", "in the context of", "nuance", "evolving", "integral", "landscape"]
found_forbidden = [w for w in forbidden if w in p.lower()]
starts_with_bad = p.lower().startswith(('by ', 'in the '))
sentence_list = [s.strip() for s in p.replace('!', '.').replace('?', '.').split('.') if s.strip()]
bad_sentence_starts = [s for s in sentence_list if s.lower().startswith(('by ', 'in the '))]
return {
"word_count_ok": 98 <= wc <= 120,
"sentence_length_ok": len(short_sentences) == 0,
"forbidden_ok": len(found_forbidden) == 0,
"starts_ok": not starts_with_bad and len(bad_sentence_starts) == 0
}
p1 = "Nigerian music and cinema represent the heartbeat of a nation that finds its voice through the rhythmic sounds and colorful visual stories of its people. Every song recorded and every movie filmed serves as a unique mirror reflecting our shared history, cultural growth and the many struggles we face daily. This creative output is far more than just a source of temporary fun because it carries the weight of our identity across many generations. We must start treating these artistic works as valuable treasures that deserve a permanent place within the quiet halls of our great National Library. Preserving these items ensures that the spirit of our country remains alive and accessible for every child born into this rapidly changing world."
p2 = "Authors and publishers have long followed the rules of legal deposit to make sure that their books are kept safe for future researchers and readers. It is now time for us to apply these same rules to the brilliant filmmakers and talented musicians who define the modern Nigerian experience today. Our stories are no longer just written on paper because they are now captured in digital pixels and high quality audio files that need protection. If we do not act quickly to save these works, we risk losing the very essence of what makes our culture so vibrant and special. The National Library should become a secure home where these creative expressions are shielded from the harsh effects of time and technological decay."
p3 = "Many legendary songs from the past are slowly disappearing from our collective memory because they were never properly stored in a central government facility or archive. Think about the soulful melodies of Rex Lawson or the powerful messages found in the classic highlife tracks that once filled the streets of old Lagos. These artists captured the mood of a developing nation, yet their master tapes are often left to rot in dusty basements or forgotten private collections. Without a formal system for legal deposit, the early works of giants like Chief Stephen Osadebe might vanish entirely from our cultural map forever. We owe it to these pioneers to rescue their sounds and keep them safe within a professional and well funded national repository."
p4 = "The cinematic history of our country also faces a silent threat as old film reels become brittle and unplayable due to poor storage and neglect. Early Nigerian movies that paved the way for the massive industry we see today are often impossible to find in any good or usable format. Great pioneers like Hubert Ogunde created visual masterpieces that showed the world our rich traditions, but many of these works are now lost to history. If we had a strict law requiring film deposits years ago, we would still have easy access to every frame of our cinematic journey. Protecting these films is the only way to show the next generation how far we have traveled as a creative and resilient people."
p5 = "Today our modern artists like Burna Boy and Wizkid are taking the sound of Africa to every corner of the global stage with great success. While their music is currently available on digital streaming platforms, these private companies do not have a duty to preserve Nigerian history for us. Streaming services can delete tracks or even shut down entirely, leaving a huge gap in our cultural records that may never be filled again. The National Library offers a stable and permanent solution that ensures these global hits remain part of our official story for many centuries. Submitting these digital files as legal deposits will anchor our modern success in a place where it can never be truly erased."
p6 = "Nollywood has grown into a global powerhouse that produces thousands of stories that capture the complex reality of living and working in a modern African city. These movies document our changing fashion, our evolving language and the social issues that define our lives at this specific moment in our long history. When a filmmaker submits a copy of their work to the state, they are contributing to a massive library of human experience and national growth. This process turns a commercial movie into a piece of history that scholars can study to understand the heart of Nigeria in years. Every scene filmed in the bustling markets or quiet villages becomes a record that explains who we were and who we became."
p7 = "Legal deposit laws must be updated to reflect the reality of the digital age where most creative work is born on computers and mobile devices. The current rules mostly focus on physical books, but we must expand this vision to include every form of digital media produced by our citizens. This change is not about creating more work for artists, but about giving their creations the respect and protection that they deserve as national assets. A filmmaker who hands over a master copy of their movie is ensuring that their hard work will be seen by researchers long after. We must build a system that values the digital file as much as the printed page to keep our history complete and safe."
p8 = "Creators often worry about the safety of their intellectual property when they are asked to share their high quality work with a government institution or library. This concern is valid because piracy is a major problem that hurts the income and livelihood of many hardworking artists and producers in our country. The National Library must implement a very secure system that protects these files from any unauthorized access or illegal distribution to the public at large. We can use advanced technology to create a dark archive where the material is kept safe without being available for free download or viewing. This balance between preservation and protection will help build trust between the government and the creative community across the entire nation."
p9 = "Think of the joy a student will feel in fifty years when they can listen to the original recordings of Fela Kuti in perfect quality. They will be able to hear the raw power of the horns and the deep meaning of the lyrics as if they were there. This level of access is only possible if we start the hard work of collecting and archiving these sounds in a professional way today. Our musical heritage is a gift that we must pass down to those who will come after us to lead this great country forward. By saving these sounds, we are providing a foundation for future musicians to learn from the masters who walked the earth before them."
p10 = "The film industry also stands to gain a lot from a national archive that documents the techniques and styles used by our most successful directors. Aspiring cinematographers could study the lighting and framing of classic Nigerian films to understand how our visual language has changed over the many passing decades. A central library of film would serve as a school for the soul where the secrets of our storytelling are kept for everyone. This repository would foster a deeper appreciation for the craft of filmmaking and encourage more people to pursue careers in the creative arts. We need to treat our movies as textbooks of human emotion and national struggle that deserve careful study and long term care."
p11 = "Our culture is a living thing that needs a memory to survive, and the National Library is the most logical place for this memory. When we ignore the need for legal deposit for music and film, we are essentially choosing to forget the most vibrant parts of ourselves. Every song that fades away and every movie that disappears is a small piece of our national identity that is lost for all time. We cannot afford to be a nation that knows its past only through the books written by people from other distant lands and cultures. We must take ownership of our own stories by making sure they are stored securely within our own borders and under our control."
p12 = "Social media and YouTube are wonderful tools for sharing our creativity with the world, but they are not designed to be permanent archives for humanity. These platforms are driven by profit and can change their algorithms or business models in ways that hide or delete our cultural history without warning. A sovereign nation must have its own repository that does not depend on the whims of foreign tech billionaires or shifting market trends. The National Library of Nigeria is a stable institution that exists solely to serve the people and protect the records of our great country. Placing our music and film in this trusted space is a bold statement of our cultural independence and our national pride."
p13 = "The process of submitting these works should be made as simple and easy as possible to encourage every creator to participate in this national mission. Small independent artists and large production houses should all feel that their work is a valuable part of the grand story of our diverse people. We can create digital portals where files can be uploaded quickly without the need for expensive physical travel or long hours of complex paperwork. When the process is easy, more people will contribute, and our national archive will grow to reflect the true diversity of our creative spirit. This inclusivity is what will make our collection a true representation of every voice found within the borders of Nigeria."
p14 = "Preserving our creative works also opens up new opportunities for tourism and international research that can bring more revenue and global respect to our country. People from all over the world are fascinated by the energy of Nigerian culture and would love to study our music and film history. A well organized national archive can attract scholars and fans who are willing to pay for the chance to access our unique cultural treasures. This shows that preservation is not just a cost, but an investment that can yield significant social and economic returns for the entire nation. We are sitting on a goldmine of culture that only needs to be organized and protected for the benefit of everyone."
p15 = "Let us remember the sounds of Christy Essien Igbokwe and the way her voice once united a nation through the simple power of a song. Her music still has the power to move us, but only if we can find high quality recordings that have been properly maintained. If we allow these voices to be silenced by the passage of time, we are failing our ancestors and our future children as well. The National Library is the guardian of these voices, and it is our duty to support its mission with every resource we have. We must act now before more of our musical history is lost to the silence of forgotten and broken technology."
p16 = "Future generations will look back at this time and judge us by how well we protected the stories that made us who we are today. They will ask if we cared enough about our music and our movies to save them from the inevitable decay of the digital world. If we succeed, they will have a rich and vibrant record of their heritage that will inspire them to reach for even greater heights. This is the true meaning of national heritage because it is a bridge that connects the past, the present and the future. We have the chance to build that bridge today by supporting the expansion of legal deposit laws for all creators."
p17 = "The time for talk has passed, and the time for action is here because our cultural history is slipping through our fingers with every passing day. Every creator in the film and music industries should see themselves as a guardian of the Nigerian story and a hero of our culture. By submitting your work to the National Library, you are making sure that your name and your art will live on forever. This is how we build a legacy that will stand the test of time and shine as a beacon for all of Africa. Let us join hands to protect our songs and our films as the precious national treasures that they truly are today."
paragraphs = [p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17]
for i, p in enumerate(paragraphs):
res = validate_paragraph(p, i)
print(res)
print("\n".join(paragraphs))
Para 1: 121 words. Sentence lengths: [25, 25, 24, 24, 23]
{'word_count_ok': False, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': True}
Para 2: 123 words. Sentence lengths: [25, 25, 25, 25, 23]
{'word_count_ok': False, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': True}
Para 3: 123 words. Sentence lengths: [26, 26, 25, 24, 22]
{'word_count_ok': False, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': True}
Para 4: 122 words. Sentence lengths: [25, 25, 25, 24, 23]
{'word_count_ok': False, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': True}
Para 5: 118 words. Sentence lengths: [25, 24, 24, 23, 22]
{'word_count_ok': True, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': True}
Para 6: 121 words. Sentence lengths: [26, 25, 25, 23, 22]
{'word_count_ok': False, 'sentence_length_ok': True, 'forbidden_ok': False, 'starts_ok': True}
Para 7: 122 words. Sentence lengths: [25, 25, 25, 24, 23]
{'word_count_ok': False, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': True}
Para 8: 121 words. Sentence lengths: [26, 25, 25, 24, 21]
{'word_count_ok': False, 'sentence_length_ok': False, 'forbidden_ok': True, 'starts_ok': True}
Para 9: 120 words. Sentence lengths: [25, 24, 24, 24, 23]
{'word_count_ok': True, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': False}
Para 10: 118 words. Sentence lengths: [25, 25, 23, 23, 22]
{'word_count_ok': True, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': True}
Para 11: 119 words. Sentence lengths: [24, 24, 24, 24, 23]
{'word_count_ok': True, 'sentence_length_ok': True, 'forbidden_ok': True, 'starts_ok': True}
Para 12: 118 words. Sentence lengths: [25, 25, 23, 24, 21]
{'word_count_ok': True, 'sentence_length_ok': False, 'forbidden_ok': True, 'starts_ok': True}
Para 13: 118 words. Sentence lengths: [25, 25, 24, 24, 20]
{'word_count_ok': True, 'sentence_length_ok': False, 'forbidden_ok': True, 'starts_ok': True}
Para 14: 118 words. Sentence lengths: [25, 24, 24, 24, 21]
{'word_count_ok': True, 'sentence_length_ok': False, 'forbidden_ok': True, 'starts_ok': True}
Para 15: 115 words. Sentence lengths: [25, 23, 24, 23, 20]
{'word_count_ok': True, 'sentence_length_ok': False, 'forbidden_ok': True, 'starts_ok': True}
Para 16: 115 words. Sentence lengths: [25, 24, 24, 22, 20]
{'word_count_ok': True, 'sentence_length_ok': False, 'forbidden_ok': True, 'starts_ok': True}
Para 17: 116 words. Sentence lengths: [26, 24, 22, 23, 21]
{'word_count_ok': True, 'sentence_length_ok': False, 'forbidden_ok': True, 'starts_ok': False}
Nigerian music and cinema represent the heartbeat of a nation that finds its voice through the rhythmic sounds and colorful visual stories of its people. Every song recorded and every movie filmed serves as a unique mirror reflecting our shared history, cultural growth and the many struggles we face daily. This creative output is far more than just a source of temporary fun because it carries the weight of our identity across many generations. We must start treating these artistic works as valuable treasures that deserve a permanent place within the quiet halls of our great National Library. Preserving these items ensures that the spirit of our country remains alive and accessible for every child born into this rapidly changing world.
Authors and publishers have long followed the rules of legal deposit to make sure that their books are kept safe for future researchers and readers. It is now time for us to apply these same rules to the brilliant filmmakers and talented musicians who define the modern Nigerian experience today. Our stories are no longer just written on paper because they are now captured in digital pixels and high quality audio files that need protection. If we do not act quickly to save these works, we risk losing the very essence of what makes our culture so vibrant and special. The National Library should become a secure home where these creative expressions are shielded from the harsh effects of time and technological decay.
Many legendary songs from the past are slowly disappearing from our collective memory because they were never properly stored in a central government facility or archive. Think about the soulful melodies of Rex Lawson or the powerful messages found in the classic highlife tracks that once filled the streets of old Lagos. These artists captured the mood of a developing nation, yet their master tapes are often left to rot in dusty basements or forgotten private collections. Without a formal system for legal deposit, the early works of giants like Chief Stephen Osadebe might vanish entirely from our cultural map forever. We owe it to these pioneers to rescue their sounds and keep them safe within a professional and well funded national repository.
The cinematic history of our country also faces a silent threat as old film reels become brittle and unplayable due to poor storage and neglect. Early Nigerian movies that paved the way for the massive industry we see today are often impossible to find in any good or usable format. Great pioneers like Hubert Ogunde created visual masterpieces that showed the world our rich traditions, but many of these works are now lost to history. If we had a strict law requiring film deposits years ago, we would still have easy access to every frame of our cinematic journey. Protecting these films is the only way to show the next generation how far we have traveled as a creative and resilient people.
Today our modern artists like Burna Boy and Wizkid are taking the sound of Africa to every corner of the global stage with great success. While their music is currently available on digital streaming platforms, these private companies do not have a duty to preserve Nigerian history for us. Streaming services can delete tracks or even shut down entirely, leaving a huge gap in our cultural records that may never be filled again. The National Library offers a stable and permanent solution that ensures these global hits remain part of our official story for many centuries. Submitting these digital files as legal deposits will anchor our modern success in a place where it can never be truly erased.
Nollywood has grown into a global powerhouse that produces thousands of stories that capture the complex reality of living and working in a modern African city. These movies document our changing fashion, our evolving language and the social issues that define our lives at this specific moment in our long history. When a filmmaker submits a copy of their work to the state, they are contributing to a massive library of human experience and national growth. This process turns a commercial movie into a piece of history that scholars can study to understand the heart of Nigeria in years. Every scene filmed in the bustling markets or quiet villages becomes a record that explains who we were and who we became.
Legal deposit laws must be updated to reflect the reality of the digital age where most creative work is born on computers and mobile devices. The current rules mostly focus on physical books, but we must expand this vision to include every form of digital media produced by our citizens. This change is not about creating more work for artists, but about giving their creations the respect and protection that they deserve as national assets. A filmmaker who hands over a master copy of their movie is ensuring that their hard work will be seen by researchers long after. We must build a system that values the digital file as much as the printed page to keep our history complete and safe.
Creators often worry about the safety of their intellectual property when they are asked to share their high quality work with a government institution or library. This concern is valid because piracy is a major problem that hurts the income and livelihood of many hardworking artists and producers in our country. The National Library must implement a very secure system that protects these files from any unauthorized access or illegal distribution to the public at large. We can use advanced technology to create a dark archive where the material is kept safe without being available for free download or viewing. This balance between preservation and protection will help build trust between the government and the creative community across the entire nation.
Think of the joy a student will feel in fifty years when they can listen to the original recordings of Fela Kuti in perfect quality. They will be able to hear the raw power of the horns and the deep meaning of the lyrics as if they were there. This level of access is only possible if we start the hard work of collecting and archiving these sounds in a professional way today. Our musical heritage is a gift that we must pass down to those who will come after us to lead this great country forward. By saving these sounds, we are providing a foundation for future musicians to learn from the masters who walked the earth before them.
The film industry also stands to gain a lot from a national archive that documents the techniques and styles used by our most successful directors. Aspiring cinematographers could study the lighting and framing of classic Nigerian films to understand how our visual language has changed over the many passing decades. A central library of film would serve as a school for the soul where the secrets of our storytelling are kept for everyone. This repository would foster a deeper appreciation for the craft of filmmaking and encourage more people to pursue careers in the creative arts. We need to treat our movies as textbooks of human emotion and national struggle that deserve careful study and long term care.
Our culture is a living thing that needs a memory to survive, and the National Library is the most logical place for this memory. When we ignore the need for legal deposit for music and film, we are essentially choosing to forget the most vibrant parts of ourselves. Every song that fades away and every movie that disappears is a small piece of our national identity that is lost for all time. We cannot afford to be a nation that knows its past only through the books written by people from other distant lands and cultures. We must take ownership of our own stories by making sure they are stored securely within our own borders and under our control.
Social media and YouTube are wonderful tools for sharing our creativity with the world, but they are not designed to be permanent archives for humanity. These platforms are driven by profit and can change their algorithms or business models in ways that hide or delete our cultural history without warning. A sovereign nation must have its own repository that does not depend on the whims of foreign tech billionaires or shifting market trends. The National Library of Nigeria is a stable institution that exists solely to serve the people and protect the records of our great country. Placing our music and film in this trusted space is a bold statement of our cultural independence and our national pride.
The process of submitting these works should be made as simple and easy as possible to encourage every creator to participate in this national mission. Small independent artists and large production houses should all feel that their work is a valuable part of the grand story of our diverse people. We can create digital portals where files can be uploaded quickly without the need for expensive physical travel or long hours of complex paperwork. When the process is easy, more people will contribute, and our national archive will grow to reflect the true diversity of our creative spirit. This inclusivity is what will make our collection a true representation of every voice found within the borders of Nigeria.
Preserving our creative works also opens up new opportunities for tourism and international research that can bring more revenue and global respect to our country. People from all over the world are fascinated by the energy of Nigerian culture and would love to study our music and film history. A well organized national archive can attract scholars and fans who are willing to pay for the chance to access our unique cultural treasures. This shows that preservation is not just a cost, but an investment that can yield significant social and economic returns for the entire nation. We are sitting on a goldmine of culture that only needs to be organized and protected for the benefit of everyone.
Let us remember the sounds of Christy Essien Igbokwe and the way her voice once united a nation through the simple power of a song. Her music still has the power to move us, but only if we can find high quality recordings that have been properly maintained. If we allow these voices to be silenced by the passage of time, we are failing our ancestors and our future children as well. The National Library is the guardian of these voices, and it is our duty to support its mission with every resource we have. We must act now before more of our musical history is lost to the silence of forgotten and broken technology.
Future generations will look back at this time and judge us by how well we protected the stories that made us who we are today. They will ask if we cared enough about our music and our movies to save them from the inevitable decay of the digital world. If we succeed, they will have a rich and vibrant record of their heritage that will inspire them to reach for even greater heights. This is the true meaning of national heritage because it is a bridge that connects the past, the present and the future. We have the chance to build that bridge today by supporting the expansion of legal deposit laws for all creators.
The time for talk has passed, and the time for action is here because our cultural history is slipping through our fingers with every passing day. Every creator in the film and music industries should see themselves as a guardian of the Nigerian story and a hero of our culture. By submitting your work to the National Library, you are making sure that your name and your art will live on forever. This is how we build a legacy that will stand the test of time and shine as a beacon for all of Africa. Let us join hands to protect our songs and our films as the precious national treasures that they truly are today.