Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def final_tone(corpus, what_final_tone):
final = what_final_tone[: -1]
tone = what_final_tone[-1]
return pc.search_jp(corpus, [(final, 2), (tone, 3)], 'type')