Fix the use of uninitialised value when @ARGV == 0.
Fix the test.
Write some documentation about the script to combine Japanese predicates.
Create a separate function to isolate the functionality from while loop.

Also, add the documentation.