In my profile I would like to increase driver safety : that is prefer crossing a primary road with maxspeed=80 at places where lanes=1 or lanes=3.
Thus my idea is to add a penalty (read: extra cost) to crossing (not turning) such a highway=primary where lanes=2, in a way similar to how traffic lights or stop signs are handled in the example brouter profiles. The profile developers guide neither Poutnikl's brouter profile glossary give me a clue on how to do such.
How can add a cost to a (crossing) node based, not on properties of the way the route follows, instead on properties of the way being crossed (without adding explicit tags in OSM)?