Hi Ardee
Your first post here, so welcome to the Forums.
In addition to important issues (including those of copyright) already pointed to by Roundtuit, trying to get AI to do analysis based on e.g. legislative requirements is difficult even if the AI focuses entirely on legislation AND is capable of working out the latest version of any specific piece of legislation is at any time.
Starting with the premise that you are going to focus on the UK as it gets MUCH more complicated if you venture beyond.......
Let's assume that the AI is reasonably clever and realises that it needs to access the legal requirements via legislation.gov.uk and can work out that Law A applies in England and Wales but not in Scotland and Northern Ireland and DOES look at the latest variant, it might still not have the most up to date version as there might be some recent amendment that the website has yet to capture. Perhaps the on the ball OSH professional is keeping tabs on what is on the horizon and may hence realise that SI 2024 No 5799 has been made and comes into force on 5 May 2025 and so amends e.g. the PUWER Regulations.
Which already leaves a dilemma - do you base your risk assessment on what the law says now, or what it will say on 5 May?
But occupational health and safety law in the UK is much more nuanced than e.g. what it says in OSHA Regulations in the US where almost all requires are very clear. "DO this." "DON'T DO that."
Instead a mix of a very few requirements which set "strict liability" duties, amongst others qualified by "so far as practicable", "so far as reasonably practicable" [or its twin ALARP], all intermixed with a few mentions of "reasonable", "suitable" and other words that dilute the demand.
How is your AI going to decide which legal judgment on the interpretation of e.g. "reasonable practicability" to default to and decide whether or not it needs to at all?
You can, of course, programme your AI to capture everything in every single publication that HSE and other UK enforcing authorities currently have in publication, but will AI be able to find all the stuff that is out of print that might still be relevant?
AI might also capture all the HSE press releases about successful prosecutions and assume that everything that HSE asserts in those press releases is completely accurate and not recognise that if a defendant has pleaded guilty [not necessarily as the defendant actually thinks they are guilty at all, or thinks that they were not THAT guilty] what HSE might take from that might be far from a true picture of the circumstances - sometimes you have to have been in the Court to know what was actually said and recognise when the HSE press release is not only miles away but contradictory as to the facts AGREED in Court.
Hence, if you place too much reliance on AI to do things like risk assessment, as Roundtuit indicates, you need to make sure that your insurance cover is VERY robust.