The UK Government says this about the relevance of substantial part to copyright law:
Infringement is where someone uses the whole or a substantial part of your work without your permission and none of the exceptions to copyright apply.
Substantial part
A substantial part is not defined in copyright law but has been interpreted by the courts to mean a qualitatively significant part of a work even where this is not a large part of the work. Therefore, it is quite likely that even a small portion of the whole work will still be a substantial part.
What does "qualitatively significant part of a work" part of a work mean practically? Are we able to at least put some bounds, such as "Fewer than X words will definitely not be, and more than Y definitely will be" or anything? The best answer would probably reference cases which were found in opposite directions.
The particular case I am thinking about is if an Artificial Intelligence Large Language Model generated part of ones creative work, what factors would one consider in assessing if the amount was significant? The work could be an English/human readable work or computer code. It would seem that with such text based systems one could quantify the extent of the work that was taken quite objectively.