


'''simple docstring'''



import re

from filelock import FileLock


try:
	import nltk

	lowerCAmelCase	:		Dict				=   True
except (ImportError, ModuleNotFoundError):
	lowerCAmelCase	:		Tuple				=   False

if NLTK_AVAILABLE:
	with FileLock('''.lock''') as lock:
		nltk.download('''punkt''', quiet=True)



def   __lowerCAmelCase					(							lowerCamelCase   :						str					):






	'''simple docstring'''




	re.sub("<n>"				,		""				,		lowerCamelCase					)  # remove pegasus newline char
	assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
	return "\n".join(nltk.sent_tokenize(lowerCamelCase					)					)




'''simple docstring'''



import re



def   __lowerCAmelCase					(							lowerCamelCase   :						str					):






	'''simple docstring'''




	__lowerCAmelCase												=  re.compile(
	    r"^(?:0|94|\+94|0{2}94)" r"7(0|1|2|4|5|6|7|8)" r"(-| |)" r"\d{7}$"					)

	return bool(re.search(lowerCamelCase				,		lowerCamelCase					)					)


if __name__ == "__main__":
	lowerCAmelCase	:		Optional[Any]				=   '''0094702343221'''

	print(is_sri_lankan_phone_number(phone))